JSFiddle - React, Tailwind, and code Playground
HTML
<li class="main">
<a id="first" href="#">ImageLink</a> <!--1st anchor tag-->
<a id="second" href="#">ImageName</a> <!--2nd anchor tag-->
</li>
JavaScript
$("#first").hover(function(){
$('#second').css('color','red')
},function(){
$('#second').css('color','red')
});