JSFiddle - React, Tailwind, and code Playground

by George Samaras

HTML

<input class="onealphaonly">

JavaScript

$('.onealphaonly').bind('keyup blur',function(){ 
    var node = $(this);
    node.val(node.val().replace(/[^a-zA-Z]/g{1},'') ); }
);