npm i @pollen-solutions/selectors-mutation-observer
import {SelectorsMutationObserver} from "@pollen-solutions/selectors-mutation-observer"
SelectorsMutationObserver('.element', function ($el, mutationObserverInstance) {
console.log('HTMLElement with class [.element] was added !!')
}, document.querySelector('ancestor-of-element'))
import {SelectorsMutationObserver} from "@pollen-solutions/selectors-mutation-observer"
SelectorsMutationObserver('.element', function ($el, mutationObserverInstance) {
console.log('HTMLElement with class [.element] was added !!')
})