What is Flux ?

  • 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like

What is Prop Drilling ?

We pass a prop with another component with the help of all the components that come between, this method is known as prop drilling. Prop drilling is basically a situation…
View Answer

What is React DOM ?

It is an object which exposes a number of top level APIs to interact with the browser DOM. It provides DOM-specific methods that can be used at the top level…
View Answer