JSFiddle - React, Tailwind, and code Playground

HTML

<div class="fred">
    Hello
</div>

CSS

.fred:hover
{
text-decoration:underline;
}