JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" /><input type="text" />
<input type="text" /><input type="text" />
CSS
input
{
width:30px;
}
JavaScript
$(function(){
$("input").keyup(function(){
var $this = $(this);
if ($this.val().length>=4){
$this.next().focus();
}
});
});