JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="first" />
<input type="text" id="second" />
<input type="button" id="button"/>
JavaScript
$( '#first' ).bind( 'keyup', function() {
$( '#second' ).focus();
});
$('#button').click(function() {
$('#second').focus();
});