JSFiddle - React, Tailwind, and code Playground JavaScript $('body').keypress(function (ev) { $(this).append(ev.which); });