@react-reusable/hooks
v1.6.3
Published
Useful react hooks that can be reused across applications
Downloads
2
Readme
Installing
// with npm:
npm i @react-reusable/hooks
// or with yarn:
yarn add @react-reusable/hooks
Hooks
useDisableScroll
— crossbrowser disable scrolluseOpenPopup
— manage popups/modals/tooltips visibility stateuseEffectOnUpdates
— useEffect that ignores first renderuseOutsideClick
— invoke callback when user clicks outside the elementuseBoolean
— makes it easer to use boolean state