JSFiddle - React, Tailwind, and code Playground

by Eric Howe

CSS

div {
    border: 1px solid red;
}

JavaScript

var $element = $('<input />', {
    // attributes
}).add('<label />', {
    // attributes
});
var $div = $('<div>').append($element);
$('body').append($div);