JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" />

JavaScript

$(window).load(function(){ 
    
    $("input[type='text']").keyup
    (
        function () 
        {
            //alert('1');
            $(this).val($(this).val().replace(/[,]/g, ""));
        }
    );

});