Download next.js/test/e2e/app-dir/app-edge/app/edge/layout.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-edge/app/edge/layout.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-edge/app/edge/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-edge/app/edge/layout.tsx
285 Bytes
| 'use client' | |
| import { useSelectedLayoutSegments } from 'next/navigation' | |
| export default function Layout({ children }: { children: React.ReactNode }) { | |
| // useSelectedLayoutSegment should not be thrown | |
| useSelectedLayoutSegments() | |
| return children | |
| } | |
| export const runtime = 'edge' | |