very simple react timer component with multiple customisation options along with callback support
npm install react-time-counternpm i react-time-counter --save
import Timer from "react-time-counter"
>
Options:
hours:timer start with allocated hours //default 0
ex:
minutes:timer start with allocated minutes //default 0
ex:
seconds:timer start with allocated seconds//default 0
ex:
backward: timer move backward if true// default false
ex:
stopHours:timer will stop at this hours // default 0
ex:
stopMinutes:timer will stop at this minutes// default 0
ex:
stopSeconds:timer will stop at this seconds// default 0
ex:
showHours: if you want to hide hoursset false // default true
ex:
showMinutes:if you want to hide minutes set false // default true
ex:
showSeconds:if you want to hide seconds set false // default true
ex:
label: the label before timer
ex:
endLabel: the label aftertimer
ex:
prefixZero: if set false timer will be 0:0:0 // default true so timer will be 00:00:00
ex:
callback:
> if you want to execute callback function after timer complete you can pass callback