This component provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature, which was part of the DOM3 Events specification.
Code was adapted from https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver