JSFiddle - React, Tailwind, and code Playground

by Cameron Bernhardt

HTML

<input type="text" class="in-field" name="name" placeholder="Site Name" autocomplete="off" id="name1" />

JavaScript

$("#name1").keyup(function (e) {
    console.log(String.fromCharCode(e.which));
});