Download next.js/test/e2e/app-dir/app-css/app/dashboard/client-comp-client.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/dashboard/client-comp-client.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-css/app/dashboard/client-comp-client.jsx
-
curl -L -o client-comp-client.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/dashboard/client-comp-client.jsx
346 Bytes
| 'use client' | |
| import styles from './client-comp.module.css' | |
| import { useEffect, useState } from 'react' | |
| export default function ClientComp() { | |
| const [state, setState] = useState({}) | |
| useEffect(() => { | |
| setState({ test: 'HELLOOOO' }) | |
| }, []) | |
| return ( | |
| <> | |
| <p className={styles.client}>Hello</p> | |
| {state.test} | |
| </> | |
| ) | |
| } | |