JSFiddle - React, Tailwind, and code Playground
HTML
<div id="id">Inspect the DOM and see the preceding sibling</div>
JavaScript
$("div#id").before("<div>").after("</div>");
<div id="id">Inspect the DOM and see the preceding sibling</div>
$("div#id").before("<div>").after("</div>");