JSFiddle - React, Tailwind, and code Playground

HTML

<p>Paragraph 1</p>
<p>Paragraph 2</p>

JavaScript

$('body').children().each(function() {
    $(this).prependTo("body");
});