提交 58583a2b 编写于 作者: A Anton Moiseev 提交者: Tim Neutkens

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

* Replace _document.tsx example with _app.tsx

* Fix title

* Remove _app.tsx
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册