Reduce your <Word>
by reduce-flux.
⚓ See src/flux/README.md
It has onAction
and dispatch
method.
It has sure bound method of EventEmitter.
ReduceStore has reduce
.
reduce(state: State, action: Action): State
It is similar to ReduceStore of flux-utils
Your Store should inherited of ReduceStore
StoreGroups observe ReduceStores by defined getStores
.
Your State Manager should inherited of StoreGroups
npm install
npm run build
open index.html
npm test
- Q. How to treat Shared Store?
- A. Does create singleton of Store?
- Q. What has Multiple state in a single App cons?
- ???
- debug?
- Q. User create a instance of ActionEmitter. It means that multiple emitter is exist in a single app.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
MIT