@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
3 lines (2 loc) • 329 B
TypeScript
export declare function useMutationObserver<T extends HTMLElement = any>(callback: MutationCallback, options: MutationObserverInit): React.RefCallback<T | null>;
export declare function useMutationObserverTarget(callback: MutationCallback, options: MutationObserverInit, target?: HTMLElement | (() => HTMLElement) | null): void;