JSFiddle - React, Tailwind, and code Playground
HTML
<input type="number" />
JavaScript
$("input").keyup(function(){
$(this).val($(this).val().replace(/,/, "."));
});
<input type="number" />
$("input").keyup(function(){
$(this).val($(this).val().replace(/,/, "."));
});