Data Flow

suggest change
This is outline of comprehensive Overview.

Flux pattern assumes the use of unidirectional data flow.

  1. Action — simple object describing action type and other input data.
  2. Dispatcher — single action receiver and callbacks controller. Imagine it is central hub of your application.
  3. Store — contains the application state and logic. It registers callback in dispatcher and emits event to view when change to the data layer has occured.
  4. View — React component that receives change event and data from store. It causes re-rendering when something is changed.
As of Flux data flow, views may also create actions and pass them to dispatcher for user interactions.

Reverted

To make it more clearer, we can start from the end.

Few components may be called controller-views, cause they provide the glue code to get the data from the stores and to pass data down the chain of their descendants. Controller-views represent any significant section of the page.
Formerly, you’ll want to use constants for action types and helper methods (called action creators).

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


React and Flux:
*Data Flow

Table Of Contents