Tushar MukherjeeforTushar Mukherjeetusharmukherjee.hashnode.netยท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...useEffectAdd a thoughtful commentNo comments yetBe the first to start the conversation.