Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.14 KB

File metadata and controls

39 lines (31 loc) · 1.14 KB

Developer Documentation

Introduction

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.

Table of Contents

Function Explanation

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>
  )
}

Dependencies

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.

API Specs

No API specifications are present for the Document function.

Schema Tables

No schema tables are present for the Document function.