function Counter() { const [count, setCount] = React.useState(0); return ( <div> <div>Count: {count}</div> <button onClick={() => setCount(count + 1)}>Increment</button> </div> ); }
function Counter() { const [count, setCount] = React.useState(0); return ( <div> <div>Count: {count}</div> <button onClick={() => setCount(count + 1)}>Increment</button> </div> ); }