JSFiddle - React, Tailwind, and code Playground
HTML
<div id='container'> </div>
<button>Click </button>
CSS
.test{
height:25px;
width:50px;
margin-bottom:2px;
background:grey;
}
JavaScript
$("button").click(function(){
$("#container").append("<div class='test'></div>");
});
$("#container").bind("DOMNodeInserted",function(){
alert("child is appended");
});