Build better UX with frame-synchronized hooks.
A hook collection built over the requestAnimationFrame window API
- React Hooks:
- useRafLoop - controlled, frame-synchronized repetitive callback execution.
- useRafTimer - controlled, frame-synchronized timer / countdown.
- useRafState - reactive state which updates on next repaint (
requestAnimationFrame)
- Utilities - frame-synchronized replacement for
setTimeoutandsetIntervalwindow's methods