JSFiddle - React, Tailwind, and code Playground

HTML

<div>click and mosue off</div>

CSS

div{
    cursor: pointer;
}

JavaScript

$('div').on('click',function(){
   $(this).off('mouseenter'); 
});