@johnrom/react-countup
Version:
A React component wrapper around CountUp.js
8 lines (7 loc) • 348 B
TypeScript
/**
* Create a stable reference to a callback which is updated after each render is committed.
* Typed version borrowed from Formik v2.2.1. Licensed MIT.
*
* https://github.com/formium/formik/blob/9316a864478f8fcd4fa99a0735b1d37afdf507dc/LICENSE
*/
export declare function useEventCallback<T extends (...args: any[]) => any>(fn: T): T;