JSFiddle - React, Tailwind, and code Playground

HTML

<div>
<a href="http://www.google.com">Google</a>

<a href="http://www.google.com">Google</a>
</div>

CSS

a {
    display: block;
}

JavaScript

$(function() {
    alert($("div < a ").attr("href"));
});