Download next.js/test/integration/app-tree/pages/another.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 182 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-tree/pages/another.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/app-tree/pages/another.js
-
curl -L -o another.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/app-tree/pages/another.js
182 Bytes
| import { useRouter } from 'next/router' | |
| const Page = () => { | |
| const { pathname } = useRouter() | |
| return ( | |
| <> | |
| <h3>page: {pathname}</h3> | |
| </> | |
| ) | |
| } | |
| export default Page | |