From the course: Building React and ASP.NET Core Applications

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Why Redux?

Why Redux?

From the course: Building React and ASP.NET Core Applications

Start my 1-month free trial

Why Redux?

- [Instructor] Redux is a state management tool for JavaScript applications. The main concept behind Redux is that the entire state of an application is stored in one central location. But which are the core Redux concepts? To put simply, store is the database of our application. It stores different states defined in our app. And this state is a single immutable data searcher. This data would make up the store, and the Redux store serves as a client side single source of truth. If the store the database of our app, the reducers are the tables. Reducer is a pure function that accepts two parameters: an action, and the previous state, with the type, an optional data associated with the event. So, store keeps the state of our app, and reducers get the state of the store. But how do we update the store when we need to? That is the role of the actions. Actions represent payloads of information that are dispatched to the store…

Contents