JSFiddle - React, Tailwind, and code Playground

HTML

<form id="a-form">
    <input id="a-text-input" type="text">
    <input id="another-text-input" type="text">
</form>

JavaScript

document.getElementById("a-form").onchange = function() {
    console.log("change event handler invoked");
}