@essex-js-toolkit/hooks
A set of hooks for use with react
Last updated 5 months ago by darthtrevino .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @essex-js-toolkit/hooks 
SYNC missed versions from official npm registry.

@essex-js-toolkit/hooks

Provides a set of useful react hooks for common applications

List of available Hooks:

  • useDimensions: getting the dimensions of the given element
  • useSelectionHandler: provides basic selection handling
  • useLongRunning: invokes a long running task, and provides a loading flag
  • useDebouncedCallback: creates a debounced callback
  • useDynamicData: allows for the use of a dynamic data source
  • useEventListener: adds various listeners to the given element and cleans them up when done
  • useMousePosition: gets the current mouse position on the given element
  • useScrollListener: adds a scroll listener to the given element
  • useToggle: hook for a toggleable state
  • useDestroyable: hook for using a destroyable thing, so when the value changes
  • useInterval: creates an interval with the specified delay, and clears it on unmount

License

Licensed under the MIT License.

Current Tags

  • 1.1.4                                ...           latest (2 months ago)

3 Versions

  • 1.1.4                                ...           2 months ago
  • 1.1.3                                ...           3 months ago
  • 1.1.2                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 9
Dependencies (2)
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |