JSFiddle - React, Tailwind, and code Playground

HTML

<div id='hideDiv'>Text</div>

CSS

body {
    height: 600px;
}

JavaScript

$('#hideDiv').hide();
var showDiv = function(){
     $('#hideDiv').show();
}; 
var timeOut = setTimeout(showDiv, 3000); 
$('body').mousemove(function(){
     clearTimeout(timeOut);
      $('#hideDiv').hide(); 
     timeOut = setTimeout(showDiv, 3000); 
});