JSFiddle - React, Tailwind, and code Playground

by padma rubhan

HTML

<div class="parent">
first
</div>

<div class="parent">
second
</div>

CSS

.parent:nth-child(2){
  background-color: #000000;
  color: #fff
}