JSPM

react-use

4.6.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2149179
  • Score
    100M100P100Q189000F
  • License Unlicense

Collection of React Hooks

Package Exports

  • react-use
  • react-use/lib/useAsync
  • react-use/lib/useAudio
  • react-use/lib/useBoolean
  • react-use/lib/useGetSetState
  • react-use/lib/useIdle
  • react-use/lib/useList
  • react-use/lib/useLocalStorage
  • react-use/lib/useLocation
  • react-use/lib/useMedia
  • react-use/lib/useObservable
  • react-use/lib/useOutsideClick
  • react-use/lib/useSetState
  • react-use/lib/useSpring
  • react-use/lib/useToggle
  • react-use/lib/useVideo
  • react-use/lib/useWindowSize

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 (react-use) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme



👍
react-use






Collection of essential React Hooks.
Port of libreact. See demos.




npm i react-use








Usage

  • You need to have React 16.7.0-alpha.0 or later installed to use Hooks API.
  • You can import each hook individually import useToggle from 'react-use/lib/useToggle'.

License

Unlicense — public domain.