Download next.js/test/e2e/app-dir/app-prefetch/app/static-page/page.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/e2e/app-dir/app-prefetch/app/static-page/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-prefetch/app/static-page/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch/app/static-page/page.js
426 Bytes
| import Link from 'next/link' | |
| import { BackButton } from './back-button' | |
| export default async function Page() { | |
| return ( | |
| <> | |
| <p id="static-page">Static Page</p> | |
| <p> | |
| <Link href="/" id="to-home"> | |
| To home | |
| </Link> | |
| </p> | |
| <p> | |
| <Link href="/static-page" prefetch> | |
| To Same Page | |
| </Link> | |
| </p> | |
| <p> | |
| <BackButton /> | |
| </p> | |
| </> | |
| ) | |
| } | |