Skip to content

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.

Where the book teaches it

Related terms

actiondispatchuseReducerpure function