JSFiddle - React, Tailwind, and code Playground

HTML

<div id="thei">Test</div>

CSS

#thei {
    display: inline-block;
    height: 2em;
    width: 2em;
    background-color: red;
}

JavaScript

$('#thei').hover(

function () {
    console.log("in");
}, function () {
    console.log("out");
});