JSPM

use-debounce-animation-frame

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 59
  • Score
    100M100P100Q69673F
  • License MIT

React hook for debouncing with requestAnimationFrame

Package Exports

  • use-debounce-animation-frame

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-debounce-animation-frame) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.