JSFiddle - React, Tailwind, and code Playground

by Addy Osmani

HTML

<input id="textbox"/>
<a href="#" id="tester">test</a>

JavaScript

$("#textbox").focus(function () {
    $('body').append('focused on textbox');
    });

$('a').click(function(){    
  $("#textbox").focus();
});