JSFiddle - React, Tailwind, and code Playground

HTML

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

CSS

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

JavaScript

$("#testcard")
    .on("mouseenter", "#thei", function (event) {
    console.log("in");
})
    .on("mouseleave", "#thei", function (event) {
    console.log("out");
});