Download next.js/test/e2e/app-dir/app-prefetch/app/uri-encoded-prefetch/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 347 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch/app/uri-encoded-prefetch/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-prefetch/app/uri-encoded-prefetch/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/uri-encoded-prefetch/page.js
347 Bytes
| import Link from 'next/link' | |
| export default async function Page() { | |
| return ( | |
| <> | |
| <p id="uri-encoded-prefetch">URI Encoded Prefetch</p> | |
| <p> | |
| <Link | |
| href="/?param=with%20space" | |
| id="prefetch-via-link" | |
| prefetch={true} | |
| > | |
| Prefetch Via Link | |
| </Link> | |
| </p> | |
| </> | |
| ) | |
| } | |