Download next.js/test/e2e/app-dir/app-css/app/client-component-route/page.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/client-component-route/page.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/e2e/app-dir/app-css/app/client-component-route/page.js
-
curl -L -o page.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/e2e/app-dir/app-css/app/client-component-route/page.js
403 Bytes
| 'use client' | |
| import { useState, useEffect } from 'react' | |
| import style from './style.module.css' | |
| import './style.css' | |
| export default function ClientComponentRoute() { | |
| const [count, setCount] = useState(0) | |
| useEffect(() => { | |
| setCount(1) | |
| }, [count]) | |
| return ( | |
| <> | |
| <p className={style.red}> | |
| hello from app/client-component-route. <b>count: {count}</b> | |
| </p> | |
| </> | |
| ) | |
| } | |