JSFiddle - React, Tailwind, and code Playground

HTML

<ul id = "exampleList"> <!-- id's are sexy, and by far the fastest way to select elements, always use id's if possible -->
    <li>one</li>
    <li>two</li>
    <li>three</li>
</ul>

JavaScript

$(document).ready(function() { // run when document has finished loading 
    $("#exampleList").chlidren().each(function(index, elem) { // callback function is run for each child element of list 
        var $element = $(elem);
        return $element.text();
    });
});