JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

var t = document.getElementById("txt0");
t.focus();
t.onchange = function() { alert("changed"); };