UNPKG

@thibault.sh/hooks

Version:

A comprehensive collection of React hooks for browser storage, UI interactions, and more

10 lines (8 loc) 279 B
/** * Hook that throttles a value * @param value - The value to throttle * @param interval - The minimum time interval between updates in milliseconds * @returns The throttled value */ declare function useThrottle<T>(value: T, interval: number): T; export { useThrottle };