JSFiddle - React, Tailwind, and code Playground

by calder12

HTML

<div class="me"><a href="">Hi there</a></div>

CSS

a { background-color: #000; }
.hoverClass {background-color: #ff0000; }

JavaScript

$('.me a').mouseenter(function(){
     $(this).toggleClass('hoverClass');
});