npm explorer
use-debounce-animation-frame - npm explorer
use-debounce-animation-frame
v1.0.2
TypeScript
React hook for debouncing with requestAnimationFrame
debounce
animation-frame
request-animation-frame
react
hook
use-debounce
0
/week
Updated 3 years ago
MIT
Unpacked: 4.1 KB
Published by
Martin Koparanov
npm
yarn
pnpm
bun
npm install use-debounce-animation-frame
Repository
Homepage
npm
Readme
Dependencies
(1)
Versions
(3)
use-debounce-animation-frame
React hook for
debounce-animation-frame
. You can use it as a drop-in replacement for
useCallback
, with the addition that your function will be debounced with
debounce-animation-frame
.
It takes a function as a first argument, and dependencies as a second argument and returns a function, just like
useCallback
.
For more information, check out
debounce-animation-frame
.
License
Licensed under the
MIT License
.