This documentation provides an overview and explanation of the code for the Document
function. This function is written in Next.js and is responsible for rendering the HTML structure of a document.
The Document
function is the default export of the module. It is a React component that returns the HTML structure of a document using the Next.js framework.
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
The Document
function has the following dependencies:
next/document
: This is a module provided by Next.js and is used to create custom document components.
No API specifications are present for the Document
function.
No schema tables are present for the Document
function.