JSFiddle - React, Tailwind, and code Playground
by Dian Carlos Cabral dos Santos
HTML
<div id="app">
<input type="text" v-on:input="handle">
</div>
JavaScript
new Vue({
el: '#app',
data : () => ({
message: 'hello moto!',
timeout: null
}),
methods : {
handle(e){
clearTimeout(this.timeout);
this.timeout = setTimeout(() => {
console.log(e)
}, 500);
}
}
})