useRaf API
Throttles callbacks to the next animation frame with cancel-then-request deduplication. Cleans up automatically on scope disposal.
Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| useRaf | System |
| useResizeObserver | System |
| useEventListener | System |
Functions
useRaf
(callback: (timestamp: DOMHighResTimeStamp) => void) => UseRafReturnScope-disposed safe requestAnimationFrame.