JSFiddle - React, Tailwind, and code Playground

HTML

<button type="button" class="reply-button">Reply</button>

JavaScript

$("body").on("click", ".reply-button", function(){
    alert("test");
});