JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://google.com" target="_blank">Google</a>
<a href="http://www.google.com/" target="_blank">Google</a>
<a href="http://www.google.com/" target="_blank">Google</a>
JavaScript
$('a[href*="google.com"]').each( function (i) {
$(this).attr("href","http://yahoo.com");
});