JSFiddle - React, Tailwind, and code Playground

HTML

<input style="margin-left:13px" type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>
        <input type="text" class="time" value="0" maxlength="1"/>

JavaScript

$("input").keyup(function(){
              if(this.defaultValue!=$(this).val()&&$(this).val()!='')
                $(this).nextAll('input:first').focus();
            })