JSFiddle - React, Tailwind, and code Playground

HTML

<!-- example of jQuery.each() -->
<ul>
	<li>monday</li>
	<li>tuesday</li>
	<li>wedesday</li>
	<li>thursday</li>
	<li>friday</li>
	<li class="weekend">saturday</li>
	<li class="weekend">sunday</li>
</ul>

JavaScript

$.each( $('li.weekend'), function(index, value) {
    //value = 'this'
    $(value)
    .text( $(value).text() + ' -> ' +  index) 
    .css('color','red');
});