JSFiddle - React, Tailwind, and code Playground
by akang2
HTML
<html>
<body>
<div id="wow">
<p>Fuck yea</p>
</div> <!-- end wow -->
</body>
</html>
JavaScript
//Creating Nodes and appending them
var usingDomMethods;
//grab the div
var grabDiv = document.getElementById('wow');
//create a new div
var newDiv = document.createElement('shoot');
//create the text node in the new div
var newText= document.createTextNode('Oh shit yea');
//append the text node to the new div
newDiv.appendChild(newText);
//append the new text node new div combo to the old div
grabDiv.appendChild(newDiv);