I\'m building a countdown timer with React and encountered this: clearInterval works onCklick if it doesn\'t update the component. If I update state within the interval function