JSFiddle - React, Tailwind, and code Playground
by Karthick
HTML
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<div id="test-div">
</div>
JavaScript
// jQuery on,trigger
$( "#test-div" ).on( "custom_event_handler", function( event_obj, param1, param2 ) {
alert( param1 + "\n" + param2 );
});
$( "#test-div").trigger( "custom_event_handler", [ "Hi", "How are you?" ] );