JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">click</div>
CSS
.border {
border: solid 1px red;
}
JavaScript
$('#test').click(function() {
$(this).addClass("border")
})
$('#test').click()
<div id="test">click</div>
.border {
border: solid 1px red;
}
$('#test').click(function() {
$(this).addClass("border")
})
$('#test').click()