Download next.js/test/production/jest/rsc/app/component.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/jest/rsc/app/component.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/production/jest/rsc/app/component.jsx
-
curl -L -o component.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/production/jest/rsc/app/component.jsx
255 Bytes
| import { useState } from 'react' | |
| export default function Counter() { | |
| const [count, setCount] = useState(0) | |
| return ( | |
| <> | |
| <h2>{count}</h2> | |
| <button type="button" onClick={() => setCount(count + 1)}> | |
| + | |
| </button> | |
| </> | |
| ) | |
| } | |