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