Skip to content

Glossary: React Beyond the Basics

initializer

The optional third argument of useReducer, a function React calls once to build the first state. The cart uses loadCart to restore saved lines.

Where the book teaches it

Related terms

useReducerlocalStorage