UNPKG

reactuals

Version:

A useful package providing a collection of 50+ React hooks and utilities to simplify React development.

8 lines (7 loc) 197 B
/** * A hook that throttles a value by a specified delay. * * Example: * const throttledValue = useThrottle(value, 500); */ export declare function useThrottle<T>(value: T, delay: number): T;