0.1.15 • Published 6 years ago
react-hookr v0.1.15
react-hookr
react common public hook
To install react-hookr, simply run:
npm install react-hookr
hook
- Sensors
useScroll— tracks an HTML element's scroll position.useTimeout— returns bolean status(true) after a timeout.useToggle— return state of booleanuseHover— hover state of some elmentuseLocalStorage— set or get local storageuseRefMounted— tracks if component is mountedusePromise— resolves promise only while component is mounteduseList— tracks a value of an arrayusePrevious— tracks a value of previous