提交 8676b0ff 编写于 作者: H Hyeonjun (Jello) 提交者: JJ Kasper

Update no-document-title.md (#9082)

上级 7ff5cc13
......@@ -10,7 +10,7 @@ Set `<title>` in `pages/_app.js` instead:
```js
// pages/_app.js
import App, { Container } from 'next/app'
import App from 'next/app'
import Head from 'next/head'
import React from 'react'
......@@ -29,12 +29,12 @@ export default class MyApp extends App {
const { Component, pageProps } = this.props
return (
<Container>
<>
<Head>
<title>My new cool app</title>
</Head>
<Component {...pageProps} />
</Container>
</>
)
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册