React Hook, Hooks, React.
setCount(count + 1) }, [count]) const decrement = useCallback(() => { setCount(count — 1) }, [count]) const incrementOtherCounter = useCallback(() => { setOtherCounter(otherCounter + 1) }, [otherCounter]) return ( <> Count: {count} <button onClick={increment}>+</button> <button