Download next.js/test/e2e/app-dir/actions/app/layout.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 671 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/layout.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/layout.js
-
curl -L -o layout.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/layout.js
671 Bytes
| import Link from 'next/link' | |
| export default function RootLayout({ children }) { | |
| return ( | |
| <html> | |
| <head /> | |
| <body> | |
| <div id="random-number">{Math.random()}</div> | |
| <div> | |
| <div> | |
| <Link id="navigate-client" href="/client"> | |
| Client | |
| </Link> | |
| </div> | |
| <div> | |
| <Link id="navigate-server" href="/server"> | |
| Server | |
| </Link> | |
| </div> | |
| <div> | |
| <Link id="navigate-revalidate" href="/revalidate"> | |
| Client and Server | |
| </Link> | |
| </div> | |
| </div> | |
| {children} | |
| </body> | |
| </html> | |
| ) | |
| } | |