Skip to content

Glossary: React Basics

Single source of truth

Also written: source of truth

Keeping each piece of data in exactly one place, such as the cart in `App`, so every part of the page that reads it agrees.

Where the book teaches it

Related terms

Controlled inputDerived valueLifting state up