A hook that creates a MutationObserver and observes a DOM element for mutations. When a mutation occurs, the callback function is executed.
The DOM element to observe
The callback function to execute when a mutation occurs
Options to pass to the MutationObserver to configure what mutations to observe
A hook that creates a MutationObserver and observes a DOM element for mutations. When a mutation occurs, the callback function is executed.