UNPKG

@thibault.sh/hooks

Version:

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

9 lines (7 loc) 313 B
/** * Hook that sets up an interval that is properly cleaned up when the component unmounts * @param callback - Function to call on each interval * @param delay - Delay in milliseconds (null to pause) */ declare function useInterval(callback: () => void, delay: number | null): void; export { useInterval };