| 1 | "use client"; |
| 2 | |
| 3 | import { useState } from "react"; |
| 4 | |
| 5 | export function Counter() { |
| 6 | const [count, setCount] = useState(0); |
| 7 | return ( |
| 8 | <button onClick={() => setCount((value) => value + 1)} type="button"> |
| 9 | count: {count} |
| 10 | </button> |
| 11 | ); |
| 12 | } |