Download next.js/test/e2e/basepath/pages/catchall/[...parts].js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 131 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/basepath/pages/catchall/%5B...parts%5D.js
- Command line
-
hf download 'hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/basepath/pages/catchall/[...parts].js'
-
curl -L -o '[...parts].js' https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/basepath/pages/catchall/%5B...parts%5D.js
131 Bytes
| import { useRouter } from 'next/router' | |
| const Page = () => <p>parts: {useRouter().query.parts?.join('/')}</p> | |
| export default Page | |