react common public hook
To install react-hookr, simply run:
npm install react-hookr
useScroll— tracks an HTML element's scroll position.
useTimeout— returns bolean status(true) after a timeout.
useToggle— return state of boolean
useHover— hover state of some elment
useLocalStorage— set or get local storage
useRefMounted— tracks if component is mounted
usePromise— resolves promise only while component is mounted
useList— tracks a value of an array
usePrevious— tracks a value of previous