• It is an application architecture that Facebook makes use of internally for constructing the client-side web application with React .
  • It is a programming concept, where the data is a Unidirectional Data Flow model.
  • The project has dynamic data, where it is useful.
  • We need to maintain the data updated in an effective
  • The runtime errors become reduced.

  • In this application, there are four major roles:
    • Action
    • Dispatcher
    • Store
    • View

Action:

  • In this creator an action from method parameter,assign it a type and then provide to a dispatcher.

Dispatcher:

  • It sends every action to all stores via callbacks that have registered with it.

Store:

  • It updates themselves in response to an action ,emit the change event to alert the controller view.

View:

  • It retrieves new data from the stores and provides the new data to their descendants in the component tree.

Categorized in: