JSFiddle - React, Tailwind, and code Playground

by alga noto

HTML

<div class="inner">a</div>
<div class="outer">a</div>

CSS

.inner {
    height:200px;
    width:200px;
    background:blue;
}
.outer {
    height:200px;
    width:200px;
    background:green;
}
.new {
    height:1200px;
    width:300px;
    background:yellow;
}

JavaScript

$(".inner, .outer").wrapAll("<div class='new' />");