JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrapper">
<div id="one">1</div>
<div id="two">this is the div i want to move</div>
<div id="three">2</div>
<div id="four">3</div>
</div>
<button>move</button>
JavaScript
$("button").click(function () {
$("#two").appendTo(".wrapper")
});