JSFiddle - React, Tailwind, and code Playground
HTML
<h1>Test.</h1>
CSS
.Blue {color:blue;}
JavaScript
$(document).ready(function() {
$("h1").click(function() {
$(this).addClass("Blue");
});
});