React Hooks — 👍 http://streamich.github.io/react-use
useBattery— tracks device battery state.
useGeolocation— tracks geo location state of user’s device.
useHoverDirty— tracks mouse hover state of some element.
useIdle— tracks whether user is being inactive.
useLocation— tracks page navigation bar location state.
useMedia— tracks state of a CSS media query.
useMediaDevices— tracks state of connected hardware devices.
useMotion— tracks state of device’s motion sensor.
useNetwork— tracks state of user’s internet connection.
useOrientation— tracks state of device’s screen orientation.
useSize— tracks some HTML element’s dimensions.