JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<input type="text" />
JavaScript
$('input').keyup(function(e){
$(this).val(function() {
var val = this.value;
return val.replace(/(\.)+/g, function(char, str) {
return str;
});
});
});