JSFiddle - React, Tailwind, and code Playground

HTML

<div id="wrapper"></div>

JavaScript

// click event won't work
$(".test").click(function(){
    alert(1);
});

// click event will work
$(".test").live('click', function(){
    alert(2);
});

// click event will work for jQuery 1.7+
$(document).on('click', '.test', function(){
    alert(3);
});

$("#wrapper").html("<div class='test'>test</div>")