Search⌘ K

The Reducer

Learn to understand the role of reducers in Redux by comparing them with JavaScript's Array.reduce method. Discover how reducers handle state and actions, and explore the basics of creating a Redux store using the createStore function to manage application state effectively.

We'll cover the following...

We will go into greater details pretty soon, but I’ll keep this short for now.

When you hear the word, reducer, what comes to your mind? reduce?

Yeah, that’s what I thought. It sounds like reduce.

Well, according to the Redux official docs:

Reducers are the most important concept in Redux.

widget

Our Cashier is a pretty important person, huh?

So, what’s the deal with the Reducer. What does it do?

In more technical terms, a reducer is also ...