Download next.js/test/e2e/app-dir/app-static/app/force-static/layout.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 362 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-static/app/force-static/layout.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-static/app/force-static/layout.js
-
curl -L -o layout.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-static/app/force-static/layout.js
362 Bytes
| import { cookies, headers } from 'next/headers' | |
| export default async function Layout({ children }) { | |
| const curHeaders = await headers() | |
| const curCookies = await cookies() | |
| return ( | |
| <> | |
| <p id="headers">{JSON.stringify([...curHeaders.keys()])}</p> | |
| <p id="cookies">{JSON.stringify([...curCookies.getAll()])}</p> | |
| {children} | |
| </> | |
| ) | |
| } | |