JSFiddle - React, Tailwind, and code Playground

HTML

<h1 class="test">
test
</h1>
<h1 class="test2">
test
</h1>

CSS

h1.test {color:green}
test2.h1 {color:green}