JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<span><a href="#">abc</a></span>
<span><a href="#">def</a></span>
</div>
JavaScript
$('span a').each(function() {
var anchor = $(this);
if (anchor.text().toUpperCase() == 'ABC') {
anchor.hide();
}
});