The best way to control Claude Code, Codex and more from any computer or phone

main
jsx 15 lines 339 Bytes
Raw
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 }