JSFiddle - React, Tailwind, and code Playground

by Daniel Lamb

HTML

Track Mouseenter 
<div id="example"></div>
mouse enter count: <span>0</span>

CSS

#example {
    width: 100px;
    height: 100px;
    background: red;
}

JavaScript

$('#example').on('mouseenter', function () {
    var elm = $('span'),
        count = parseInt(elm.text(), 10);
    count++;
    elm.text(count);
});