react-code-dataset / next.js /test /development /app-dir /segment-explorer /app /parallel-default /layout.tsx
Download next.js/test/development/app-dir/segment-explorer/app/parallel-default/layout.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 626 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/segment-explorer/app/parallel-default/layout.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/segment-explorer/app/parallel-default/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/segment-explorer/app/parallel-default/layout.tsx
626 Bytes
| import Link from 'next/link' | |
| export default function Layout({ children, bar, foo }) { | |
| return ( | |
| <div> | |
| <h1>Nested Layout</h1> | |
| <div> | |
| <div> | |
| <Link href="/parallel-default/subroute"> | |
| <div id="subroute-link">Go to /parallel-default/subroute</div> | |
| </Link> | |
| </div> | |
| <div> | |
| <Link href="/parallel-default"> | |
| <div id="grid-link">Go to /parallel-default</div> | |
| </Link> | |
| </div> | |
| </div> | |
| <div id="nested-children">{children}</div> | |
| <div id="foo-slot">{foo}</div> | |
| <div id="bar-slot">{bar}</div> | |
| </div> | |
| ) | |
| } | |