Download next.js/test/integration/app-document-import-order/pages/_document.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/pages/_document.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/app-document-import-order/pages/_document.js
-
curl -L -o _document.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-document-import-order/pages/_document.js
509 Bytes
| import Document, { Html, Head, Main, NextScript } from 'next/document' | |
| import sideEffect from '../sideEffectModule' | |
| sideEffect('_document') | |
| class MyDocument extends Document { | |
| static async getInitialProps(ctx) { | |
| const initialProps = await Document.getInitialProps(ctx) | |
| return { | |
| ...initialProps, | |
| } | |
| } | |
| render() { | |
| return ( | |
| <Html> | |
| <Head /> | |
| <body> | |
| <Main /> | |
| <NextScript /> | |
| </body> | |
| </Html> | |
| ) | |
| } | |
| } | |
| export default MyDocument | |