UNPKG

reactuals

Version:

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

7 lines (6 loc) 232 B
/** * Runs a function repeatedly at a set interval. * @param callback - Function to call * @param delay - Delay in ms (set null to pause) */ export declare function useInterval(callback: () => void, delay: number | null): void;