JSFiddle - React, Tailwind, and code Playground
HTML
<input type='text' value='hello world' id='hello-world-input'>
JavaScript
$(function() {
$('#hello-world-input').focus();
});
<input type='text' value='hello world' id='hello-world-input'>
$(function() {
$('#hello-world-input').focus();
});