JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" oninput="this.value = this.value.replace(/[^0-9.]\d{3,}/g, '').replace(/(\..*)\./g, '$1');" />
<input type="text" oninput="this.value = this.value.replace(/[^0-9.]\d{3,}/g, '').replace(/(\..*)\./g, '$1');" />