Question: what are reducers in reactjs?
Answer: The reducer is a pure function that takes the previous state and an action, and returns the next state. It's called a reducer because it's the type of function you would pass to Array. ... It's very important that the reducer stays pure.