JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test"></div>
CSS
#test {
height: 40px;
width: 40px;
background: red;
}
JavaScript
$('#test').mouseover(function() {
$(this).css('background', 'blue');
});
$('#test').mouseleave(function() {
$(this).css('background', 'red');
});