UNPKG

378 BTypeScriptView Raw
1/** This is a custom React hook in a format suggest by Dan Abramov in a blog post here:
2 * https://overreacted.io/making-setinterval-declarative-with-react-hooks/. It allows setInterval to be used
3 * declaratively in functional React components.
4 */
5export declare function useInterval(callback: () => void, delay: number | null): void;
6//# sourceMappingURL=useInterval.d.ts.map
\No newline at end of file