JSFiddle - React, Tailwind, and code Playground

JavaScript

$(function() {
    $('<input>', {
      'type' : 'text',
      'autofocus' : 'true'
    }).attr('size',50).appendTo('body');
    
    $('<input type="text" autofocus="true" size="50">').appendTo('body');
});