JSFiddle - React, Tailwind, and code Playground

CSS

html, body { width: 100%; height: 100%; }

JavaScript

var timer;
document.addEventListener('mousemove', function() {
    document.body.style.cursor = 'default';
    clearTimeout( timer );
    timer = setTimeout(function() {
        document.body.style.cursor = 'none';
    }, 1500 );
}, false )