0.1.2 • Published 10 years ago
@mohayonao/fluxx v0.1.2
FLUXX
simple implementation of Flux architecture
Installation
npm install @mohayonao/fluxxAPI
Router
constructor()
Instance attributes
actions: Action[]stores: Store[]
Instance methods
Also implements methods from the interface @mohayonao/event-emitter.
getStateFromStores(): objectcreateAction(address: string, data: any): voidaddChangeListener(listener: function): voidremoveChangeListener(listener: function): void
Action
constructor(router: Router)
Instance attributes
router: Router
Instance methods
doneAction(address: string, data: any): void
Store
constructor(router: Router)
Instance attributes
router: Routerdata: objectname: string
Instance methods
getInitialState(): objectgetState(): objectemitChange(): void
LICENSE
MIT