I trimmed to code to the bare minimum for your convenience. When I click âstartâ the counts changes to 24 and nothing happens more. Why does it not continue counting down?
EDIT: it seems to me after the counter displays 24 the page ârefreshesâ.
Removing the form element makes it count down to 24 without refreshing. I still donât understand whatâs wrong with using the setState method the way I did since itâs almost the same as in the EDX React course exampleâŚ
Amalia,
Your code was the only one that worked. Bam92âs code only counted to 24. Removing the âthisâ gave an error. I donât understand why your code worked without and why would using an anonymous function make a difference.