JSFiddle - React, Tailwind, and code Playground
HTML
<div class="image-entry select-image">
<img src="http://scanftree.com/Cheat-Sheets/html-logo.png">
<a class="btn btn-danger deleteimages" href="javascript:;">
<i class="fa fa-times">Delete</i>
</a>
</div>
JavaScript
$(".image-entry").click(function(e){
alert("You have clicked the parent");
});
$(".deleteimages").click(function(e){
e.stopPropagation();
alert("You have clicked the anchor. and this should not trigger the parent click.");
});