A simple alternative to the flux architecture for ReactJS.
No stores and dispatchers, just actions.
$ npm install flux-action
First, create the actions, in
var FluxAction =var Actions =//or FluxAction('PropertyUpdate'), for a single actionActionsNameUpdateActionsAgeUpdatemoduleexports = Actions
Each action is just a function, that when executed, calls all registered functions.
In order to have a flexible means of publishing various params to functions registered to actions, we introduce the concept of publishers.
Publishers are simple functions that based on the params the action was called with return an array with the params to be dispatched to listeners.
Now in Component.jsx, you can use the action
var React =var Actions =moduleexports = React