The most authoritative answer in 2024
-

-
Benjamin Davis——Works at the International Committee of the Red Cross, Lives in Geneva, Switzerland.
The
reducer is a pure function that takes the previous state and an action, and returns the next state. (previousState, action) => newState. It's called a
reducer because it's the type of function you would pass to Array.prototype.reduce(
reducer, ?initialValue) .
read more >>
About “reducer、reducer、reducer”,people ask:
QuesHub is a place where questions meet answers, it is more authentic than Quora, but you still need to discern the answers provided by the respondents.