JSFiddle - React, Tailwind, and code Playground

HTML

<div id="txt">change me!</div>

JavaScript

$('#txt').click(function () {
    console.log(this);
    var a = 10;
    var b = 20;
    var c = a+b;
    console.log(c);    
    $(this).text('changed!');
    $(this).attr('test','test');
});