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

$("a.inactive").click(function(){$(this).removeClass("inactive");$(this).unbind("click");return false;});