JSFiddle - React, Tailwind, and code Playground
HTML
<div class="home">
<p class="changeColor">first</p>
<p class="changeColor">second</p>
<p class="changeColor">third</p>
<p class="changeColor">fourth</p>
</div>
CSS
.changeColor{
color: green;
}
.changeColor:first-of-type {
color: red;
}