Unleash SharePoint Extensibility using SharePoint Framework and MutationObserver API
in Microsoft365

Monitoring changes of the DOM is sometimes needed in complex web apps and frameworks. this article will show you how you can use the MutationObserver API to make observing for DOM changes relatively easy and respond to changes by extending SharePoint functionalities.