When you don't need an effect for setInterval in React
Say you want to start a countdown timer when a user presses a "Start button". How would you build this in React? One common way I see - and it's even suggested by ChatGPT - is to have a state variable that remembers if the timer ...