JSFiddle - React, Tailwind, and code Playground

by htmlzengarden

HTML

<ul>
  <li>test 0</li>
  <li>test 1</li>
</ul>

CSS

li:last-child
{
  color: red;
}

JavaScript

$(function(){
  $('ul').append('<li>test 2</li>');
});