savalanpour / react-component-countdown-timer

This is a simple count down timer react component.
MIT License
25 stars 9 forks source link

How to restart the timer #4

Closed KunalBurangi closed 3 years ago

KunalBurangi commented 4 years ago

How to restart the timer ? is there any property or something like that ?

codewfarrer commented 4 years ago

How to restart the timer ? is there any property or something like that ?

Hello! I ran into such a problem. I found a solution - added key for component. When I want to restart component, I change its key and this causes re-rendering.