JSFiddle - React, Tailwind, and code Playground

by jeffgw

HTML

<a href="#" class="hover-me">Link One</a>
<br />
<a href="#" class="hover-me">Link Two</a>
<br />
<a href="#" class="hover-me">Link Three</a>

CSS

.hover {
	background-color:#0CF;
	color:#FFF;
}

JavaScript

$(function() {
  
  $(".hover-me").hover(function () {
	  
    $(this).toggleClass("hover");
	
   });
  
});