JSFiddle - React, Tailwind, and code Playground
by OwenMelbz
HTML
<div class="circle></div>
CSS
.circle {width:100px; height: 100px; background: black;}
JavaScript
var circle = $("<div>").addClass("circle").text("Circle!");
$("#home").click(function() {
$(this).append(circle);
});
$("body").delegate(".circle", "click", function(e) {
$(this).remove();
//To stop the bubbling up
e.stopPropagation();
return false;
});