JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" />
JavaScript
$('input').keypress(function(e){
if (this.value.length == 0 && e.which == 48 ){
return false;
}
});
<input type="text" />
$('input').keypress(function(e){
if (this.value.length == 0 && e.which == 48 ){
return false;
}
});