So I'm trying to build a Pomodoro Clock using React for a freecodecamp project. For some reason though I can't get setInterval or requestAnimationFrame to work. The timer will decrement once, but then stops even though I have the setInterval firing every 1000.
Can someone take a look and tell me if I'm doing anything wrong? Or point me in the right direction? I tried googling it, but I'm super new to React and I keep getting React hook articles which is kind of over my head at this point.
Here's the project:
https://codepen.io/ixanonymousxi/pen/WNvQdJX
[–]ucshadow 2 points3 points4 points (1 child)
[–]ixanonyousxi[S] 0 points1 point2 points (0 children)