JSFiddle - React, Tailwind, and code Playground

HTML

<button>Click me</button>

JavaScript

$('button').click(function() {
    $(this).trigger('custom', '');
}).bind('custom', function() {
    console.log("Custom run, arguments: %a", arguments);
});