JSFiddle - React, Tailwind, and code Playground

HTML

<a class="removeRecord" href="#">Delete</a>

JavaScript

$("a.removeRecord").live("click",function(event){
   event.stopPropagation();
   if(confirm("Do you want to delete?")) {
    this.click;
       alert("Ok");
   }
   else
   {
       alert("Cancel");
   }       
   event.preventDefault();
   
});