JSFiddle - React, Tailwind, and code Playground

by Sergey khorev

HTML

Text: <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/,'')"><br>
Number: <input type="number" onkeyup="this.value=this.value.replace(/[^\d]/,'')">вфы