JSFiddle - React, Tailwind, and code Playground
by Zevan
HTML
<form>
<input type="text" id="data" name="data" />
</form>
JavaScript
var timeoutId;
$("#data").keyup(function(){
clearTimeout(timeoutId);
timeoutId = setTimeout(function(){
console.log("did it");
}, 1000);
});