JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent">
...here we can have some more content...
<div class="test">test</div>
more...
</div>
<div class="sth">
sth
</div>
JavaScript
$( ".test" ).insertAfter( ".sth" );