JSFiddle - React, Tailwind, and code Playground
HTML
<div class="x">
Passe o mouse aqui :)
</div>
CSS
.x{
background-color:lightgreen;
}
JavaScript
$(function(){
$('.x').on('mouseenter', function (){
$(this).html('mouse entrou');
}).on('mouseleave', function (){
$(this).html('mouse saiu');
});
});