JSFiddle - React, Tailwind, and code Playground

HTML

<div class="test">
            <h1>Hello World</h1>
            "This is text"
        </div>

JavaScript

var child = $('.test').children();
  $('.test').html(child);