JSFiddle - React, Tailwind, and code Playground
by henser
HTML
<input id="input1" type="text">
JavaScript
document.getElementById('input1').focus();
by henser
<input id="input1" type="text">
document.getElementById('input1').focus();