JSFiddle - React, Tailwind, and code Playground

by RoryMcCrossan

HTML

<h1>Foo</h1>
<div>a</div>
<div>b</div>
<h4>Bar</h4>
<div>c</div>
<div id="wrap-until">NOT THIS</div>

CSS

.content {
    border: 1px solid #C00;
}

JavaScript

$('body > *').not('#wrap-until').wrapAll('<div class="content"></div>');