JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<div class="post">
Lots of content here
<div id="heading">
<p>Hello</p>
</div>
Another content here
</div>
<div id="real-content"></div>
CSS
.post {
display:none;
}
JavaScript
var content = $('#heading').html();
if (content != '') {
$('#real-content').html(content);
}