JSFiddle - React, Tailwind, and code Playground
by David Thomas
HTML
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
JavaScript
$('li').append(
function(i){
return '<div>Some list-item text' + (i>0 ? '(this one has an index > 0!).</div>' : '</div>.');
});