JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" class="dot"> <br />
<input type="text" class="dot"> <br />
<input type="text" class="dot"> <br />
JavaScript
$('.dot').keydown(function(){
$(this).val($(this).val().toString().replace(/\./g, ','));
})