1.

What Is Redux Change Of State?

Answer»

For a RELEASE of an action, a change in STATE to an application is applied, this ensures an intent to change the state will be achieved.

Example:

  • The user clicks a button in the application.
  • A function is called in the form of component
  • So now an action gets dispatched by the relative container.
  • This happens because the prop (which was just called in the container) is tied to an action dispatcher using mapDispatchToProps (in the container).
  • Reducer on capturing the action it intern EXECUTES a function and this function returns a new state with SPECIFIC changes.
  • The state change is known by the container and modifies a specific prop in the component as a result of the mapStateToProps function.

For a release of an action, a change in state to an application is applied, this ensures an intent to change the state will be achieved.

Example:



Discussion

No Comment Found