javascript - Flux and application state -


i'm bit confused flux architecture, following statement:

application state maintained in stores, allowing different parts of application remain highly decoupled.

i have component must have state. question is, if want use flux in application, should state live in stores or inside component? notice state not data api.

also, if user performs action, should component manage action or action creator?

enter image description here

a component gets initial state store, whenever store emits change, state of component updated.

the tutorial on tylermcginnis.com broke down quite me: http://tylermcginnis.com/reactjs-tutorial-pt-3-architecting-react-js-apps-with-flux/