JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<button id="button1">
Create
</button>
</body>
JavaScript
$("#button1").click(function(){var elem = $("<p></p>").text("hello").attr("id","created");
$("body").append(elem);});
$("#created").click(function(){ $("#created").hide();});