JSFiddle - React, Tailwind, and code Playground
HTML
<div id='output'>WTF</div>
CSS
#output {
width: 200px;
height: 300px;
border: 1px solid red;
}
JavaScript
var h1 = $('<h1>');
$('#output').append(h1).text("hello world");
var h2 = $('<h2>');
$('body').append(h2).text("hello again");
//console.log(h1); // jquery object
//console.log(h2); // DOM element