JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="l1t1r1c1" onkeypress="javascript:return isAlphaNumeric(event,this.value);" maxlength="5" onkeyup="this.value = minmax(this.value, 0, 99.99, this)">
JavaScript
function isAlphaNumeric(e) { // Alphanumeric only
var k;
document.all ? k = e.keycode : k = e.which;
return ((k > 47 && k < 58) || k == 46 || k == 0);
}