JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

jQuery(function($){
    $("input:text").keypress(function(e){
        $("#log").append("Ascii : " + e.which + "<br/>");
    });
});