JSFiddle - React, Tailwind, and code Playground

HTML

<input type='checkbox' />
<input type='button' />
<input type='text' value=' howdy ' />
<input type='text' />

JavaScript

$(function() {
    $("input[value='']:not([type='checkbox'], [type='button']):visible:first").focus();
});