Download next.js/test/e2e/app-dir/actions/app/dynamic-csr/edge/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/dynamic-csr/edge/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/actions/app/dynamic-csr/edge/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/actions/app/dynamic-csr/edge/page.js
291 Bytes
| 'use client' | |
| import dynamic from 'next/dynamic' | |
| const DynamicComponent = dynamic( | |
| () => import('../csr').then((mod) => mod.CSR), | |
| { | |
| ssr: false, | |
| } | |
| ) | |
| export default function Client() { | |
| return ( | |
| <div> | |
| <DynamicComponent /> | |
| </div> | |
| ) | |
| } | |
| export const runtime = 'edge' | |