React hook exposing a countdown timer with optional expiration and reset callbacks
npm install --save use-countdown-timer
Parameters and Return Types
use-countdown-timer is written in TypeScript and bundles type definitions.
Local development involves two parts.
First, install and start the library so that it watches
src/ directory and automatically recompiles to
dist/ on change.
# clone the repogit clone https://github.com/LobsterBandit/use-countdown-timer.git# install dependenciescd use-countdown-timer/npm install# start rollup in watch modenpm start
Second, install and start the example app that is linked to your local
# in second terminal windowcd example/npm install# start create-react-app dev servernpm start
Now, any changes to
src/ in the local
use-countdown-timer or to the example app's
example/src/ will live-reload the dev server.
MIT © LobsterBandit
This hook is created using create-react-hook.