JSFiddle - React, Tailwind, and code Playground

HTML

<input id="first" value="first" />
<input id="second" value="second" />

JavaScript

document.getElementById('second').focus();