JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
JavaScript
$(function(){
var theButton = $("<button>button</button>");
theButton.click(function(){
alert('clicked');
})
$('body').append(theButton);
})