The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | "use client"; |
| 2 | |
| 3 | import { useState } from "react"; |
| 4 | |
| 5 | export default function Counter() { |
| 6 | const [count, setCount] = useState(0); |
| 7 | return ( |
| 8 | <div> |
| 9 | <p data-testid="count">count:{count}</p> |
| 10 | <button type="button" data-testid="increment" onClick={() => setCount((c) => c + 1)}> |
| 11 | Increment |
| 12 | </button> |
| 13 | </div> |
| 14 | ); |
| 15 | } |