JSFiddle - React, Tailwind, and code Playground
HTML
Escribe algo: <input type = "text" autofocus />
CSS
input{
width: 15em;
}
JavaScript
var input = document.getElementsByTagName("input")[0],
intervalo,
disabled = function(){
return setTimeout(function(){
input.disabled = true;
}, 1500);
};
input.addEventListener("keyup", function(){
clearTimeout(intervalo);
intervalo = disabled();
}, false);