JSFiddle - React, Tailwind, and code Playground

by PeteLopez

HTML

<a href="google.com">Some Link</a>

CSS

a{
    Font-Family:Verdana;
}
.link{
    Color: Green;
}
.red{
    Color: Red;
}

JavaScript

$(document).ready(function() {
    $("a").hover(

    function() {
        $(this).addClass("red");
    }, function() {
        $(this).removeClass("red").addClass("link");
    });
});