For anyone else wondering, if you want to automatically reset the countdown after it ends, setting a new targetDate prop is not enough. The trick is to set a new value as a key for the <Countdown /> component. I used my current epoch value as the key, which was held in state.
For anyone else wondering, if you want to automatically reset the countdown after it ends, setting a new
targetDateprop is not enough. The trick is to set a new value as akeyfor the<Countdown />component. I used my current epoch value as the key, which was held in state.