JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    
</body>

JavaScript

//first create the binding
$(document).on('click', ".mootoo", function() {
    alert("clicked");
});
//then insert div
$('body').append('<div class="mootoo drive form2">Hello this a mootoo test</div>');