Commit 58583a2b authored by Anton Moiseev's avatar Anton Moiseev Committed by Tim Neutkens

Examples: fix <title> warning in the TypeScript example (#5549)

* Replace _document.tsx example with _app.tsx

* Fix title

* Remove _app.tsx
parent 9011a874
import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
// Document component is strongly typed with `@types/next`
export default class MyDocument extends Document {
render () {
return (
<html lang="en">
<Head>
<title>Next.js TypeScript Example</title>
</Head>
<body>
<Main />
<NextScript />
</body>
</html>
)
}
}
\ No newline at end of file
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