JSFiddle - React, Tailwind, and code Playground
by tobyworth
HTML
<script src="https://code.jquery.com/jquery-1.12.2.min.js"></script>
<button id="clickme">testing</button>
JavaScript
function registerClickHandler() {
$('#clickme').click(function() {
(function(that){
setTimeout(function() {
alert(that.innerHTML);
}, 200);
})(this);
});
}
registerClickHandler();