JSFiddle - React, Tailwind, and code Playground

HTML

<div style="width: 100px; height: 100px; background-color: red;"></div>

JavaScript

$("div").click(function (e) {
    $(this).css('background-color', 'blue');
});