Download next.js/test/development/app-dir/segment-explorer-globals/app/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/segment-explorer-globals/app/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/segment-explorer-globals/app/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/segment-explorer-globals/app/page.tsx
469 Bytes
| import Link from 'next/link' | |
| const hrefs = [ | |
| '/parallel-routes', | |
| '/blog/~/grid', | |
| '/soft-navigation/a', | |
| '/file-segments', | |
| '/parallel-default', | |
| '/parallel-default/subroute', | |
| ] | |
| export default function Page() { | |
| return ( | |
| <div> | |
| <h1>Segment Explorer</h1> | |
| <p>Examples</p> | |
| <div> | |
| {hrefs.map((href) => ( | |
| <div key={href}> | |
| <Link href={href}>{href}</Link> | |
| </div> | |
| ))} | |
| </div> | |
| </div> | |
| ) | |
| } | |