flux-action
A simple alternative to the flux architecture for ReactJS.
No stores and dispatchers, just actions.
Install
$ npm install flux-action
Usage
First, create the actions, in actions.js
var FluxAction = var Actions = //or FluxAction('PropertyUpdate'), for a single action ActionsNameUpdate ActionsAgeUpdate moduleexports = 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