JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <div class="div">
        Change this div!
    </div>
</body>

CSS

div{
background-color: #000;
color: white;
}

div.live{
background-color: #ccc;
}

JavaScript

$("div").click(function(){
    $(this).addClass('live');
});