JSFiddle - React, Tailwind, and code Playground

by Cameron Bernhardt

HTML

<input type="text" id="input"></input>
<div id="collector"></div>

CSS

body{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#collector{
    padding-top: 10px;
    font-size: 20px;
}

JavaScript

$("#input").keypress(function(e){
    $("#collector").html(String.fromCharCode(e.which));
});