streamich/react-use
react-use — essential React hooks library. ~100 utility hooks that should arguably ship with React itself.
What it is
A TypeScript library of ~100 reusable React hooks covering common needs: useDebounce, useThrottle, useLocalStorage, useSessionStorage, useMedia, useNetworkState, useGeolocation, useIdle, useWindowSize, useClickAway, many more. Saves teams from reinventing each of these.
Key features
- ~100 hooks covering UI state, browser APIs, lifecycle, sensors, animation, network.
- TypeScript types bundled.
- Tree-shakable — import only what you use.
- Unlicense.
Tech stack
- TypeScript primary.
- npm package:
react-use.
When to reach for it
- You're a React team and want a vetted utility-hooks library.
When not to reach for it
- You only need 1-2 hooks — copy them inline rather than depending.
- You want a smaller alternative —
@uidotdev/usehooks,usehooks-ts.
Maturity signal
Actively maintained.
Alternatives
@uidotdev/usehooks,usehooks-ts— alternatives with overlapping coverage.- VueUse (for Vue) — similar concept.
Tags
react, typescript, hooks, library, utility, unlicense