JSFiddle - React, Tailwind, and code Playground

by rafalry

HTML

<div id="console"></div>

JavaScript

$(document).keypress(function(e){
    $('#console').text( e.which + ' ' + String.fromCharCode(e.which));
});