Commit 8676b0ff authored by Hyeonjun (Jello)'s avatar Hyeonjun (Jello) Committed by JJ Kasper

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

parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment