JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div">
<p id="p1">This is a first paragraph.</p>
<p id="p2">This is a second paragraph.</p>
</div>
JavaScript
var para=document.createElement("p");
var node=document.createTextNode("This one is new paragraph added bellow.");
para.appendChild(node);
var element=document.getElementById("div");
element.appendChild(para);