Skip to content
zenui/react-hooks

useMutationObserver

Watch a DOM node for added or removed children, attribute changes and text edits. Use it to react to DOM that other code controls, such as third-party widgets or contenteditable regions.

Level
Intermediate
Since
v2.1.0
import {useMutationObserver} from '@zenuilabs/react-hooks';
Loading demo_

More in Events & DOM