UNPKG

rooks

Version:

Essential React custom hooks ⚓ to super charge your components!

11 lines 425 B
/** * * useRaf * Uses a polyfilled version of requestAnimationFrame * * @param {Function} callback The callback function to be executed * @param {boolean} [isActive] The value which while true, keeps the raf running infinitely * @see https://react-hooks.org/docs/useRaf */ export declare function useRaf(callback: (timeElapsed: number) => void, isActive: boolean): void; //# sourceMappingURL=useRaf.d.ts.map