React Utils
React Utils (@ekz/react-utils) is a collection of small, focused React hooks and helpers used across @ekz libraries and applications.
What's included
| Area | Hooks |
|---|---|
| Effects | useDebouncedEffect, useEffectOnUpdate, useRefresh |
| Timers | useDebounce, useTimeout, useInterval |
| Storage | useLocalStorage, useSessionStorage, useStoredValue |
| Time | useClock, toDateTime, Luxon helpers |
| Browser | useWindowFocusDetection |
| UI state | useToggle |
| TypeScript | unreachable exhaustiveness helper |
Install
npm install @ekz/react-utils react
Peer dependencies: react, react-dom. Uses Luxon for time utilities.
Used by
@ekz/api— WebSocket reconnect timing@ekz/blueprintjs— table and UI behaviors