This module expose Dispatcher component.
- Source:
- See:
module:react-cmf/lib/Dispatcher
This component purpose is to decorate any component and map an user event
to an action to be dispatched
- Source:
Example
<Dispatcher onClick="actionCreator:identifier" onDrag="actionCreator:anotherid">
<ChildrenElement />
</Dispatcher>
Methods
(static) Dispatcher()
This component purpose is to decorate any component and map an user event
to an action to be dispatched
- Source:
Example
function myfunc(event, props, context) {
}
<Dispatcher onClick={myfunc}>
<ChildrenElement />
</Dispatcher>