JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' id='test' maxlength='3'/>
JavaScript
$('#test').bind('keyup',function(){
if(parseInt($(this).val()) < 1)
$('#test').val('000');
})
<input type='text' id='test' maxlength='3'/>
$('#test').bind('keyup',function(){
if(parseInt($(this).val()) < 1)
$('#test').val('000');
})