Glossary: React Beyond the Basics
reducer
Also written: reducers
A pure function that takes the current state and an action and returns the new state. Kettle & Crane's cart rules all live in one cartReducer.
Glossary: React Beyond the Basics
Also written: reducers
A pure function that takes the current state and an action and returns the new state. Kettle & Crane's cart rules all live in one cartReducer.