Download next.js/test/integration/404-page-ssg/pages/_app.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 292 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/404-page-ssg/pages/_app.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/404-page-ssg/pages/_app.js
-
curl -L -o _app.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/404-page-ssg/pages/_app.js
292 Bytes
| const App = ({ Component, pageProps }) => <Component {...pageProps} /> | |
| App.getInitialProps = async ({ Component, ctx }) => { | |
| let pageProps = {} | |
| if (Component.getInitialProps) { | |
| pageProps = await Component.getInitialProps(ctx) | |
| } | |
| return { | |
| pageProps, | |
| } | |
| } | |
| export default App | |