import { useState } from 'react' export default function App() { const [count,setCount] = useState(0) const handleClick = () => { setCount(prev => prev + 1) } return ( <> <h1>Count: {count}</h1> <button onClick={handleClick}>Increase</button> </> ); }