react-stopwatch icon indicating copy to clipboard operation
react-stopwatch copied to clipboard

Reactive Stop and Start onClick

Open OmarOdaini opened this issue 4 years ago • 4 comments

how can you stop or start the stopwatch with a button? I think thats so essential for a stopwatch!

OmarOdaini avatar Jul 03 '20 16:07 OmarOdaini

Hi @OmarOdaini.

Have you tried using autoStart property to start/pause the stopwatch?

saeta-eth avatar Jul 03 '20 21:07 saeta-eth

@slorenzo thanks for the fast response!! so I was thinking that it'll be helpful to have stop start and reset functions

OmarOdaini avatar Jul 04 '20 23:07 OmarOdaini

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.

saeta-eth avatar Jul 06 '20 11:07 saeta-eth

Thanks :), I prefer your stop watch more than others but I just need that extra contol

OmarOdaini avatar Jul 07 '20 14:07 OmarOdaini