rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
10 lines • 371 B
TypeScript
declare type CallbackType<T> = (...args: T[]) => void;
/**
* useFreshTick
* @param callback The callback to be called on mount
* @returns A fresh callback.
* @see https://react-hooks.org/docs/useFreshCallback
*/
declare function useFreshTick<T>(callback: CallbackType<T>): CallbackType<T>;
export { useFreshTick };
//# sourceMappingURL=useFreshTick.d.ts.map