import { useState } from 'react'
export function Counter() {
const [count, setCount] = useState(0)
return (
<>
<p>Count: {count}</p>
<button onClick={() => setCount(c => c + 1)}>+</button>
<button onClick={() => setCount(c => c - 1)}>−</button>
</>
)
}React 19 Micro-App
Count
0