JSFiddle - React, Tailwind, and code Playground

HTML

<a class="showlink">Link</a>

CSS

.showlink {
    color: pink;
}

JavaScript

// Changes color on hover
$( function()
{
    $( '.showlink' ).hover(
        function()
        {
            var $this = $( this );
            
            $this
                .data( 'prehovercolor', $this.css( 'color' ) )
                .css( 'color', '#aaa' );
        },
        function()
        {
            var $this = $( this );
        
            $this
                .css( 'color', $this.data( 'prehovercolor') );
        }
    );
} );