JSFiddle - React, Tailwind, and code Playground

HTML

<input id="myTextBox" type="text"/>

JavaScript

$("#myTextBox").bind("change paste keyup", function() {
       alert($(this).val()); 
    });