JSFiddle - React, Tailwind, and code Playground
HTML
<span></span>
<input type="text" id="inputTxt" />
JavaScript
$(document).ready(function(){
$("input[type=text]").change(function(){
$('span').text($(this).val());
});
});
<span></span>
<input type="text" id="inputTxt" />
$(document).ready(function(){
$("input[type=text]").change(function(){
$('span').text($(this).val());
});
});