JSFiddle - React, Tailwind, and code Playground
HTML
<textarea></textarea>
JavaScript
var timer;
$("textarea").on("keydown paste cut", function(){
clearTimeout(timer);
var origvalue = this.value, self = this;
timer = setTimeout(function(){
if ( origvalue !== self.value ) {
console.log("it changed!");
}
},0);
});