JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">
I will be copied, removed and shown again
</div>
JavaScript
$( document ).ready(function() {
alert( "ready!" );
var a = $("#test")
$( "#test" ).remove();
a.show()
});