Download next.js/test/integration/basepath-root-catch-all/pages/[...parts].js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 209 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/basepath-root-catch-all/pages/%5B...parts%5D.js
- Command line
-
hf download 'hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/basepath-root-catch-all/pages/[...parts].js'
-
curl -L -o '[...parts].js' https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/basepath-root-catch-all/pages/%5B...parts%5D.js
209 Bytes
| export default ({ url }) => ( | |
| <> | |
| <h1>root catch-all</h1> | |
| <p id="url">{url}</p> | |
| </> | |
| ) | |
| export const getServerSideProps = ({ req, res }) => { | |
| return { | |
| props: { | |
| url: req.url, | |
| }, | |
| } | |
| } | |