JSFiddle - React, Tailwind, and code Playground

by RichieHindle

HTML

<input type="text" id="input">
<button id='go'>Go</button>

JavaScript

$('#go').on('click', function () {
  setTimeout(function () {
    $('#input').focus();
  }, 1000);
});