use-mutation-observer
Subscribe to changes being made to the DOM tree
Import
Source
Docs
Package
Usage
use-mutation-observer
is a wrapper for the MutationObserver.
It allows subscribing changes being made to the DOM tree.
Last detected mutation: Not mutated yet
Target element
If you cannot pass ref
to the target element, you can pass a function to resolve
the target element as a third argument.
Press Ctrl + Shift + L to change direction
Direction was changed to: Not changed yet