JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input type='text' id='text-input' />
    <input type='submit' />
</form>

JavaScript

$(function() {
    alert('go');
    $('#text-input').change(function() {
        alert('changed');
    });
});