JSFiddle - React, Tailwind, and code Playground

HTML

<input/>

JavaScript

$('input').on('keydown', function(e) {
    if( !/[a-z]|[A-Z]/.test( String.fromCharCode( e.which ) ) )
        return false;
});

$('input').on('click focusin', function() {
    this.value = '';
});