JSFiddle - React, Tailwind, and code Playground

HTML

<input/>  <input/>

JavaScript

$('input').first().focus();

var e = $.Event('keydown');

e.which = 9; // TAB
$(':focus').trigger(e);