JSFiddle - React, Tailwind, and code Playground

HTML

<div id="element">asd</div>

JavaScript

$('#element').live('hover',function(ev) {    
    if (ev.type =='mouseover') { 
        console.log('over');
   } else if (ev.type == 'mouseout') { 
        console.log('out');
   } 
});