Download next.js/test/development/app-dir/ssr-only-error/app/page.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/ssr-only-error/app/page.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/app-dir/ssr-only-error/app/page.tsx
-
curl -L -o page.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/app-dir/ssr-only-error/app/page.tsx
207 Bytes
| 'use client' | |
| function Component() { | |
| if (typeof window === 'undefined') { | |
| throw new Error('SSR only error') | |
| } | |
| return <p>hello world</p> | |
| } | |
| export default function Page() { | |
| return <Component /> | |
| } | |