JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="myTextBox" />

JavaScript

$(function() {
    $('#myTextBox').keyup(function() {
        $(this).val($(this).val().toUpperCase());
    });
});