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

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

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