JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">Blah blah <span>hehehhehe</span></a>
JavaScript
$("a").mouseover(function(e) {
if(e.target == this) {
alert('mouseover is on the anchor, do something special');
} else {
alert('got a ' + e.target.tagName + ' and not a ' + this.tagName);
}
});