JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input id="text" name="text" type="text" />
<input type="submit" value="Sumbit" />
</form>
JavaScript
$('#text').on('input', function()
{
console.log('Changed to ' + this.value);
});