JSFiddle - React, Tailwind, and code Playground
HTML
<a class="notclicked" target="_blank" href="http://www.nirgendwo.de">Click me</a>
CSS
a { display: block;
height: 20px;
width: 80px;
margin: 1em;
color: white;
background: blue;
text-align: center;
}
a.notclicked { background-color: green; }
JavaScript
jQuery("a.notclicked").click(function(event) {
event.preventDefault();
window.open(this.href);
window.open("http://www.irgendwo.de");
jQuery(this).removeClass("notclicked").text("Donate").attr("href", "http://donate.libreoffice.org");
});