Thanks to visit codestin.com
Credit goes to github.com

Skip to content

xendora/react-timer

Repository files navigation

react-timer

A minimalistic yet customizable timer component!

Live demo

Commitizen friendly

Basic Timer with 100ms interval

Installation

For NPM

npm install @xendora/react-timer

For Yarn

yarn add @xendora/react-timer

Props

Name Type Description
children object (required) Define your react component here
start number (required) A start value for the timer
end function (required) A function which determines the end for the timer
interval number An interval value for the timer. Default is 1 second
onTick function (required) A callback function where the next computed value is determined
onEnd function A callback function which executes when the timer stops executing

License

MIT © xendora