react-stopwatch
react-stopwatch copied to clipboard
Reactive Stop and Start onClick
how can you stop or start the stopwatch with a button? I think thats so essential for a stopwatch!
Hi @OmarOdaini.
Have you tried using autoStart
property to start/pause the stopwatch?
@slorenzo thanks for the fast response!! so I was thinking that it'll be helpful to have stop
start
and reset
functions
You're right! This behavior should be handled but I'm not sure if your proposal is the right approach.
I think start/pause behavior can be handled with one property that will work as a toggle.
Let me see if I can find time to take a look at this.
Thanks :), I prefer your stop watch more than others but I just need that extra contol