JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="textbox" />
JavaScript
var timer;
$('#textbox').keyup(function() {
if (timer) {
clearTimeout(timer);
}
timer = setTimeout('alert("Something cool happens here....");', 500);
});