JSFiddle - React, Tailwind, and code Playground
HTML
<span>test 1</span>
<span class='hover'>test 2</span>
CSS
span.hover:hover {
background-color: blue;
}
<span>test 1</span>
<span class='hover'>test 2</span>
span.hover:hover {
background-color: blue;
}