JSFiddle - React, Tailwind, and code Playground

by dmethvin

HTML

<input type="text" />

JavaScript

document.body.onkeypress = function(e){
    document.body.appendChild(document.createTextNode(" "+e.which));
}