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');
        
})