Skip to content

Commit

Permalink
Update no-document-title.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guswnsxodlf authored Oct 15, 2019
1 parent 7ff5cc1 commit 55660d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions errors/no-document-title.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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>
</>
)
}
}
Expand Down

0 comments on commit 55660d8

Please sign in to comment.