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.
Glossary: React Beyond the Basics
The optional third argument of useReducer, a function React calls once to build the first state. The cart uses loadCart to restore saved lines.