Friday, August 14, 2020

What is Redux?

Redux is a predictable state container for JavaScript applications.

For React applications Redux provides a centralized state container for the whole Application. Redux holds a large JavaScript state object which can be shared across the application.

In a large React application if each component contains its own state, then it becomes difficult to share the state data between components, we can pass state data from parent component to child components as props but this becomes complex in very large applications.

This is where Redux helps, redux maintains a global state for the application which can be accessed from any Component in the application, thereby avoiding the need to pass state properties as props between components.

The Redux DevTools make it easy to trace when, where, why, and how your application's state changed. 

Search Flipkart Products:
Flipkart.com

No comments: