JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="textarea"></textarea>

JavaScript

$("#textarea").on("change", function() { 
    //action to be performed on textarea changed
    alert("changed!");
});

// on("change") only fires when text area loses focus
// refer: http://stackoverflow.com/questions/17317465/jquery-textbox-change-event-doesnt-fire-until-textbox-loses-focus
// fix: use on("change keyup paste") or on("input propertychange")