JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://jqueryui.com/themes/base/jquery.ui.all.css">
<div id="my-div">
<div><a href="#">tag 1 of all</a></div>
<div><a href="#">tag 2</a></div>
</div>
JavaScript
$('#my-div a').click(function() {
var txt = $(this).text();
alert(txt);
});