JSFiddle - React, Tailwind, and code Playground

by Divz

HTML

<input type="text" name"imag" id="so"/>

<div id="a"></div>

JavaScript

$('#so').keypress(function(){

  var b =  $(this).val();
    alert(b);
    a.text(b)    
});