JSFiddle - React, Tailwind, and code Playground
JavaScript
$(document).on("foo",function(e,a) {
console.log("recieved",a);
});
var obj1={feed:"0",length:0,};
var obj2={feed:"0",length2:0,};
console.log("launchin with",obj1);
$(document).trigger("foo",obj1);
console.log("launchin with",obj2);
$(document).trigger("foo",obj2);