JSFiddle - React, Tailwind, and code Playground
by imoshtokill
HTML
<div id="txt">change me!</div>
JavaScript
$(document).ready(function () {
$('#txt').click(function () {
var foo = $(this).text();
console.log(this); // Will have changed! because it's firing after everything else
$(this).text('changed!');
console.log(foo);
});
});