Download next.js/test/e2e/app-dir/app-prefetch-false/app/layout.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 444 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch-false/app/layout.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-prefetch-false/app/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch-false/app/layout.tsx
444 Bytes
| import Link from 'next/link' | |
| import React from 'react' | |
| export default function Root({ children }: { children: React.ReactNode }) { | |
| return ( | |
| <html> | |
| <body> | |
| <div> | |
| <Link prefetch={false} href="/foo"> | |
| foo | |
| </Link> | |
| </div> | |
| <div> | |
| <Link prefetch={false} href="/foo/bar"> | |
| foo/bar | |
| </Link> | |
| </div> | |
| {children} | |
| </body> | |
| </html> | |
| ) | |
| } | |