JSFiddle - React, Tailwind, and code Playground

JavaScript

e = document.createElement('input');
document.body.appendChild(e);
e.focus = function () {
    HTMLInputElement.prototype.focus.apply(this, arguments);
}    
e.focus();