JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

HTML

<ul>
  <li>haha</li>
  <li>tes</li>
  <li>lol</li>
  <li>wkwk</li>
  <li>haha</li>
  <li>tes</li>
  <li>lol</li>
  <li>wkwk</li>
</ul>

CSS

li:nth-child(odd){
  color:red;
}
li:nth-last-child(1){
  font-weight:bold;
  color:blue;
}