react-code-dataset / next.js /test /development /acceptance /fixtures /component-stack /component.js
Download next.js/test/development/acceptance/fixtures/component-stack/component.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 169 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/acceptance/fixtures/component-stack/component.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/development/acceptance/fixtures/component-stack/component.js
-
curl -L -o component.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/development/acceptance/fixtures/component-stack/component.js
169 Bytes
| const isClient = typeof window !== 'undefined' | |
| export default function Component() { | |
| return ( | |
| <div> | |
| <p>{isClient ? 'client' : 'server'}</p> | |
| </div> | |
| ) | |
| } | |