👍 react-use Collection of essential React Hooks Port of libreact Translations: 🇨🇳 汉语 npm i react-use Sensors useBattery — tracks device battery state. useGeolocation — tracks geo location state of user's device. useHover and useHoverDirty — tracks mouse hover state of some element. useIdle — tracks whether user is being inactive. useIntersection — tracks an HTML element's intersection. useKey, useKeyPress, useKeyboardJs, and useKeyPressEvent — track keys. useLocation and useSearchParam — tracks page navigation bar location state. useLongPress — tracks long press gesture of some element. useMedia — tracks state of a CSS media query. useMediaDevices — tracks state of connected hardware devices. useMotion — tracks state of device's motion sensor. useMouse and useMouseHovered — tracks state of mouse position. useNetwork — tracks state of user's internet connection. useOrientation — tracks state of device's screen orientation. usePageLeave — triggers when mouse leaves page boundaries. useScroll —…
react-use / createStateContext + createGlobalState.
I had the ideas to build those things but never built it.
But they do, and it's awesome
Are you referring to this repository or did you create a custom hook?
streamich / react-use
React Hooks — 👍
react-use
Collection of essential React Hooks Port of libreact
Translations: 🇨🇳 汉语
Either way, it sounds like it would make for a great post! 😉