react hooks usestate and onclick code example Example: usestate const [count, setCount] = useState(0);