JSFiddle - React, Tailwind, and code Playground
by hoss
HTML
generates:
...
<div><h1>some title</h1><div class="content">some content</div></div>
</body>
JavaScript
$('<div/>', {
html: $('<h1/>', {
html: title
}).after(
$('<div/>', {
'text': content,
'class': 'content'
})
)
}).appendTo('body');