JSFiddle - React, Tailwind, and code Playground

HTML

<input class="auto" type="text" />

JavaScript

$('.auto').one('DOMAttrModified textInput input keypress paste focus', function(e) {

    // This will slice off the first character and Capitalize it while preserving the remaining characters as they are.
    $(this).val($(this).val().slice(0, 1).toUpperCase() + $(this).val().slice(1));

});