Easy
This question is a daily question and will count towards your daily streak.
In React, what is the correct way to update the state of a counter that depends on the previous state?
1const [count, setCount] = useState(0);23function increment() {4 setCount(________);5}67<button onClick={increment}>Increase</button>