JSFiddle - React, Tailwind, and code Playground

by sebababi

HTML

<div id="txt"></div>

JavaScript

$(document).hover(function(e) {
    $("#txt").html(e.type == 'mouseenter' ? 'enter' : 'leave');
});