2.0.5 • Published 4 years ago

some-handy-hooks v2.0.5

Weekly downloads
3,829
License
MIT
Repository
github
Last release
4 years ago

npm npm bundle size Build Status codecov dependabot badge semantic-release Commitizen friendly

some-handy-hooks

Bunch of handy hooks for your react application!

yarn add some-handy-hooks

# or with npm

npm install some-handy-hooks --save

useCountdown() hook

Creates a countdown with 1 sec interval, that will return on each render complete set of time variables as well as total time elapsed + onFinish callback can be passed to handle the logic.

import { useCountdown } from 'some-handy-hooks'

const { seconds, minutes, totalSeconds } = useCountdown({minutes: 20})
2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago