JSFiddle - React, Tailwind, and code Playground

HTML

<a href="#" class="button-delete">Delete</a>

JavaScript

$(document).on("click", ".button-delete", function() {
//   console.log("inside";   <-- here it is
    console.log("inside");
 });