JSFiddle - React, Tailwind, and code Playground

HTML

<a class="inactive" href="page1.html">текст ссылки 1</a>
<a class="inactive" href="page2.html">текст ссылки 2</a>
<a class="inactive" href="pageimg.html"><img></a>

CSS

a.inactive{
    cursor:default;
    text-decoration:none;
    color:#000;
}

JavaScript

$(".inactive").click(function(){if($(this).hasClass("inactive")) {$(this).removeClass("inactive");return false;}});