JSFiddle - React, Tailwind, and code Playground

HTML

<input type='text' value='hello world' id='hello-world-input'>

JavaScript

$(function() {
  $('#hello-world-input').focus();
});