JSFiddle - React, Tailwind, and code Playground

HTML

<div id="content">
</div>

JavaScript

var elementToAdd = $('<h3>').html('header');
var p = $('<p>').html('hello world');
$('div#content').append(elementToAdd);
elementToAdd.after(p);