JSFiddle - React, Tailwind, and code Playground
by qhoc
HTML
<body>
</body>
JavaScript
var $newdiv1 = $('<div id="object1"/>'),
newdiv2 = document.createElement('div'),
existingdiv1 = document.getElementById('foo');
$('body').append($newdiv1, [newdiv2, existingdiv1]);
$newdiv1.html('test');