JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input id="test" type="text" />
    <input type="reset" value="reset" />
</form>
<p id="out"></p>

JavaScript

$("#test").change(function(){
    $("#out").text($(this).val());
});