Download next.js/test/e2e/define/app/client-component.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 348 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/define/app/client-component.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/define/app/client-component.js
-
curl -L -o client-component.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/define/app/client-component.js
348 Bytes
| /* eslint-disable no-undef */ | |
| 'use client' | |
| export function ClientValue() { | |
| return ( | |
| <>{typeof MY_MAGIC_VARIABLE === 'string' ? MY_MAGIC_VARIABLE : 'not set'}</> | |
| ) | |
| } | |
| export function ClientExpr() { | |
| return ( | |
| <> | |
| {typeof process.env.MY_MAGIC_EXPR === 'string' | |
| ? process.env.MY_MAGIC_EXPR | |
| : 'not set'} | |
| </> | |
| ) | |
| } | |