JSFiddle - React, Tailwind, and code Playground

JavaScript

$('<input/>')
.attr({
    type:'text',
    size:50,
    autofocus:1
}).val("Some text").appendTo("body");