Tushar Mukherjeetusharmukherjee.hashnode.devยทOct 26, 2022useEffect with setInterval to make a timer.If you are using setInterval with useEffect, you may have got some weird bugs on the run. If you wanted to make a timer, you would create it like this at first, const [time,setTime] = useState(60); useEffect(()=>{ setInterval(()=>{ setTime(ti...38 readsuseEffectAdd a thoughtful commentNo comments yetBe the first to start the conversation.