JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="esc" />
<input type="button" value="Ok" id="ok" />
JavaScript
$(document).on("change", "#esc", function(){
alert("esc");
});
$(document).on("click", "#ok", function(){
alert("ok");
});