JSFiddle - React, Tailwind, and code Playground

by Sebastian Eschlböck

HTML

<div class="row">
    div
    <h2><asp:Literal ID="categoryTitle" runat="server"></asp:Literal>H2</h2>
    <div class="tree js-catTree" id="treeContainer" runat="server">UL</div>
</div>

<button id="replaceIt">Replace It</button>

JavaScript

$('#replaceIt').click(function() { replaceIt() });

function replaceIt()
{
$('.row').replaceWith(function() {
 return $('div', this);
});
}