var Rc = <MyReactComponent
onChange={(e) => {console.log(e);}
onClick={(e) => { workIt(); }} />;
How do I get the list of listeners ['onChange', 'onClick'], for component Rc.
I see questions related to finding listeners on DOM nodes... How to find event listeners on a DOM node using JavaScript; for which apparently no simple call exists like getEventLiteners(), alongside addEventListener() is DOM DOES support.
Is there a clean and easy way to get the listeners for React Component?