JSFiddle - React, Tailwind, and code Playground
HTML
<div id="Testing"></div>
JavaScript
$('#Testing').on("DOMSubtreeModified",function(){
alert('changed');
});
$('#Testing').text("changed");
<div id="Testing"></div>
$('#Testing').on("DOMSubtreeModified",function(){
alert('changed');
});
$('#Testing').text("changed");