JSFiddle - React, Tailwind, and code Playground
HTML
<button dojoType="dijit.form.Button" onClick="foo(arguments[0], 'bar');">A Button</button>
JavaScript
dojo.require("dijit.form.Button");
window.foo = function(evt, argForBar){
console.log("foo clicked", evt, argForBar);
}