JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://google.com"> Link to google</a>
<p> Hover over me to remove the link from the anchor</p>

JavaScript

$("p").on("mouseover", function(){
   $("a").removeAttr("href"); 
});