JSFiddle - React, Tailwind, and code Playground

by lollero

JavaScript

var x;
document.addEventListener('mousemove', function() {
    if (x) clearTimeout(x);
    x = setTimeout(blah, 200)
}, false);

function blah() {
    alert('k');
}