UNPKG

379 BTypeScriptView Raw
1/**
2 * This hook is user-land implementation of the experimental `useEffectEvent` hook.
3 * React docs: https://react.dev/learn/separating-events-from-effects#declaring-an-effect-event
4 */
5export declare function useCallbackRef<Args extends unknown[], Return>(callback: ((...args: Args) => Return) | undefined, deps?: React.DependencyList): (...args: Args) => Return | undefined;