JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>
  <script src="jquery.js"></script>
</head>
<body>
  <input type="text" value="" id="boxx"/>
  <div></div>

</body>
</html>

CSS

div { color:red; }

JavaScript

$("#boxx").keypress(function(event) {
       var stt=$(this).val();
           $("div").text(stt);
});