react-code-dataset / next.js /test /e2e /app-dir /app-prefetch /app /prefetch-auto-route-groups /layout.tsx
Download next.js/test/e2e/app-dir/app-prefetch/app/prefetch-auto-route-groups/layout.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 882 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-prefetch/app/prefetch-auto-route-groups/layout.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-prefetch/app/prefetch-auto-route-groups/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/app/prefetch-auto-route-groups/layout.tsx
882 Bytes
| export const dynamic = 'force-dynamic' | |
| import Link from 'next/link' | |
| export default function Layout({ children }: { children: React.ReactNode }) { | |
| return ( | |
| <> | |
| <nav className="bg-gray-800"> | |
| <ul className="flex"> | |
| <li className="mr-6"> | |
| <Link href="/prefetch-auto-route-groups"> | |
| <p className="text-white hover:text-gray-300">Dashboard</p> | |
| </Link> | |
| </li> | |
| <li className="mr-6"> | |
| <Link href="/prefetch-auto-route-groups/sub/foo"> | |
| <p className="text-white hover:text-gray-300">Foo</p> | |
| </Link> | |
| </li> | |
| <li className="mr-6"> | |
| <Link href="/prefetch-auto-route-groups/sub/bar"> | |
| <p className="text-white hover:text-gray-300">Bar</p> | |
| </Link> | |
| </li> | |
| </ul> | |
| </nav> | |
| {children} | |
| </> | |
| ) | |
| } | |