JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
CSS
body {
height:1000px;
}
JavaScript
$('ul').append(function () {
return $(this).children().get().reverse()
});
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
body {
height:1000px;
}
$('ul').append(function () {
return $(this).children().get().reverse()
});