JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://cherne.net/brian/resources/jquery.hoverIntent.js"></script>
<div></div>

CSS

div {
    background: red;
    height: 40px;
    width: 40px;
}

JavaScript

$(function() {
    $("div").hover(function() {
        $(this).css('background', 'green');
    }, function() {
        $(this).css('background', 'red');
    });
});