rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
14 lines • 566 B
TypeScript
import type { CallbackRef } from "../utils/utils";
/**
*
* useMutationObserverRef hook
*
* Returns a mutation observer for a React Ref and fires a callback
*
* @param {MutationCallback} callback Function that needs to be fired on mutation
* @param {MutationObserverInit} options
* @see https://react-hooks.org/docs/useMutationObserverRef
*/
declare function useMutationObserverRef(callback: MutationCallback, options?: MutationObserverInit): [CallbackRef];
export { useMutationObserverRef };
//# sourceMappingURL=useMutationObserverRef.d.ts.map