JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test">
JavaScript
$('#test').on( 'custom', function(){
var customArgs = Array.prototype.slice.call(arguments);
customArgs.shift(); // get rid of event arg
console.log( customArgs );
});
$('#test').trigger('custom', ['test', 'test']);