JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

$("#textbox").on('input focus focusout', function(e) {
    //console.log('I am pretty sure the text box changed');
    alert(e.type);
});