JSFiddle - React, Tailwind, and code Playground

HTML

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

CSS

#element{
    height: 200px;
    width: 200px;
    background-color: blue;
}

#element:hover{
    cursor: pointer;
}

JavaScript

$('#element').hover(function(){
    setTimeout(function(){
        $(this).remove();
    }.bind(this), 1000);
});