JSFiddle - React, Tailwind, and code Playground

by Ashish Kumar

HTML

<div id="parent">
    <div class="child">
        Hover Text
    </div>
</div>

JavaScript

$(function(){
    $("#parent").on({
        mouseenter : function(e){
            alert("Mouse enter");
        },
        mouseleave : function(e){
            alert("Mouse leave");
        }
    }, ".child");
});