JSFiddle - React, Tailwind, and code Playground
Storing data in the data- attribute tag for HTML5
by Terry King
HTML
<button class="showdata" data-tips="Here it is">There is data in this button tag</button>
<button class="showdata" data-tips="Here's some more">There is data in this button tag</button>
JavaScript
$(".showdata").click(function(){
alert($(this).data('tips'));
});