JSFiddle - React, Tailwind, and code Playground
by screenmutt
HTML
<div id="first"></div>
<div id="second"></div>
<div id="third"></div>
<div id="fourth"></div>
CSS
div{width: 200px; height: 100px; background-color: red; margin: 10px;}
#third{background-color: green;}
JavaScript
$("#third").insertBefore($("#second"));