Skip to content

Glossary: React Basics

localStorage

A browser feature that saves text under a name so it survives page reloads. The shop saves its cart there with `setItem` and reads it back with `getItem`.

Where the book teaches it

Related terms

Side effectLazy initial stateJSON