JSFiddle - React, Tailwind, and code Playground
HTML
<div class="parent_parent">
<div class="parent">
<a href="?delete=1" class="delete_link">The delete link</a>
</div>
</div>
CSS
.parent_parent { height: 200px; width: 200px; background-color: grey }
JavaScript
$('a').click(function(e) {
e.preventDefault();
var theParent = $(this).closest(".parent_parent");
theParent.slideUp(300, function() {
theParent.remove();
});
});