use-debounce-animation-frame
v1.0.2
Published
React hook for debouncing with requestAnimationFrame
Downloads
144
Maintainers
Readme
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.