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

main
tsx 12 lines 254 Bytes
Raw
1 "use client";
2
3 import { useState } from "react";
4
5 export function Counter() {
6 const [count, setCount] = useState(0);
7 return (
8 <button data-testid="counter" onClick={() => setCount((value) => value + 1)}>
9 count: {count}
10 </button>
11 );
12 }