JSFiddle - React, Tailwind, and code Playground
HTML
<a id="Borrar" data-id="123" href="#">Borrar</a>
JavaScript
$('#Borrar').on('click', function () {
var self = $(this),
id = self.data().id;
alert(id);/*
$.post( '', { id: id } )
.done(function() {
self.prev('p').remove();
self.remove();
});*/
});