Download next.js/test/integration/amphtml/pages/nav.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 426 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/nav.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/amphtml/pages/nav.js
-
curl -L -o nav.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/amphtml/pages/nav.js
426 Bytes
| import Link from 'next/link' | |
| if (typeof window !== 'undefined') { | |
| window.NAV_PAGE_LOADED = true | |
| } | |
| export default function Nav() { | |
| return ( | |
| <ul> | |
| <li> | |
| <Link href="/only-amp" id="only-amp-link"> | |
| AMP First Page | |
| </Link> | |
| </li> | |
| <li> | |
| <Link href="/var-before-export" id="var-before-export-link"> | |
| Another AMP First Page | |
| </Link> | |
| </li> | |
| </ul> | |
| ) | |
| } | |