I am having an issue with my timer logic. I click the play button and the countdown function is triggered, however the timer only counts down 1 second then gets stuck in a loop. I think this is an issue with my state implementation but I don’t know for sure.
i shouldn’t think so, but im not familiar with react myself so maybe a google search will help you, i use vue and iv never had problems modifying state on that.
Thanks, Biscuit. I did some searching and have some clarity but another React question that maybe others can answer. The React docs show that passing an update function in setState will ‘chain’ updates instead of conflicting (see Method 2).