Download next.js/test/e2e/app-dir/app-prefetch/app/prefetch-race/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch/app/prefetch-race/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-prefetch/app/prefetch-race/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/prefetch-race/page.js
410 Bytes
| import Link from 'next/link' | |
| import React from 'react' | |
| export default function Page() { | |
| return ( | |
| <> | |
| <div> | |
| <Link href="/force-dynamic/test-page"> | |
| /force-dynamic/test-page (prefetch: auto) | |
| </Link> | |
| </div> | |
| <div> | |
| <Link href="/force-dynamic/test-page" prefetch> | |
| /force-dynamic/test-page (prefetch: true) | |
| </Link> | |
| </div> | |
| </> | |
| ) | |
| } | |