JSFiddle - React, Tailwind, and code Playground
HTML
<div id="main">
<p id="paragraphOne">This is the First paragraph.</p>
<p id="paragraphTwo">This is the Second paragraph.</p>
</div>
<script>
var SecondPara = document.getElementById("paragraphTwo");
SecondPara.remove();
</script>