pughpugh / react-countdown-clock

HTML5 canvas countdown clock React component
ISC License
187 stars 83 forks source link

Start the timer after pressing a button #68

Closed aryanshridhar closed 4 years ago

aryanshridhar commented 4 years ago

Is there a way , I can start the timer when a particular button has been pressed ?

pughpugh commented 4 years ago

Hey. You just need to toggle the paused prop, similar to how it's done in the example.

https://github.com/pughpugh/react-countdown-clock/blob/master/index.html