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.