JSFiddle - React, Tailwind, and code Playground

by Afzaal Ahmad Zeeshan

HTML

<div>
    <div>
        <div>
<button id="blue">
    Button!
</button>
        </div>
    </div>
</div>

JavaScript

$('#blue').click(function () {
    $(this).attr('class', 'red');
});