State
useRafState
useState whose updates are batched to the next animation frame.
API
useRafState<T>(initialState: T | (() => T)): [T, Dispatch<SetStateAction<T>>]State
useState whose updates are batched to the next animation frame.
useRafState<T>(initialState: T | (() => T)): [T, Dispatch<SetStateAction<T>>]