JSFiddle - React, Tailwind, and code Playground

HTML

<button id='button1' data-value='10001'>derp</button>

JavaScript

$(".btn").click(function (event) {
    event.preventDefault();
    var btn_unique = $(this).attr("ID");
    // alert(btn_unique);  //testing

    var requestedItem = btn_unique.getAttribute("data-value");
    alert(requestedItem);
});