Download next.js/test/integration/absolute-assetprefix/pages/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 650 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/absolute-assetprefix/pages/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/integration/absolute-assetprefix/pages/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/integration/absolute-assetprefix/pages/index.js
650 Bytes
| import Link from 'next/link' | |
| export default function Page() { | |
| return ( | |
| <> | |
| <Link href="/about" id="about-link"> | |
| getStaticProps | |
| </Link> | |
| <br /> | |
| <Link | |
| href="/gsp-fallback/[slug]" | |
| as="/gsp-fallback/prerendered" | |
| id="gsp-prerender-link" | |
| > | |
| getStaticPaths prerendered | |
| </Link> | |
| <br /> | |
| <Link | |
| href="/gsp-fallback/[slug]" | |
| as="/gsp-fallback/fallback" | |
| id="gsp-fallback-link" | |
| > | |
| getStaticPaths fallback | |
| </Link> | |
| <br /> | |
| <Link href="/gssp?prop=foo" id="gssp-link"> | |
| getServerSideProps | |
| </Link> | |
| </> | |
| ) | |
| } | |