JSFiddle - React, Tailwind, and code Playground

by jmgonet

HTML

<form>
Input: <input id="a" type="text" name="x"></input>
</form>
<span></span>

JavaScript

$(document).ready(function(){
  $("#a").keypress(function(){
    $("span").text($(this).val());
  });
});