JSFiddle - React, Tailwind, and code Playground

HTML

<input type="number" />

JavaScript

$("input").keyup(function(){
	$(this).val($(this).val().replace(/,/, "."));
});