JSFiddle - React, Tailwind, and code Playground
by salt
HTML
<input type="text" id="seltxt"/>
<div id="test"></div>
CSS
body{background-color:black;font-family:tahoma;}
input{width:300px;height:25px;line-height:25;font-size:20px;color:gray;margin:10px;}
div#test{width:300px;height:22px;background-color:yellow;margin:10px;color:gray;padding:4px;}
JavaScript
$("#seltxt").live("keyup", function(event) {
$('#test').text($(this).val());
});