JSFiddle - React, Tailwind, and code Playground

by tymeJV

HTML

<ul>
    <li>1</li>
    <li>2</li>
</ul>

JavaScript

$($("ul").children().get().reverse()).each(function() {
    console.log($(this).text());
});