fluxstore
Store class for facebook flux, generates event methods automatically, more simple dispatch listener
Generates for you these methods:
addYourEventListener, removeYourEventListener, emitYourEvent
With this module you can write store this way::
const AppDispatcher = ;const SampleConstants = ;const FluxStore = { return 'create' 'change' 'createError' 'addTag'; } { // ... } { // ... } { // ... } { // ... } { ; ; ; ; } ; let store = AppDispatcher; moduleexports = store;
and in your component:
var SampleComponent = React