JSFiddle - React, Tailwind, and code Playground

HTML

<div id='hello'>hiiiiii
</div>

JavaScript

$('#hello').click(function(){
    divobj = $(this);
    setTimeout(function(){
    divobj.hide();
    },3000);
});