Glossary / State
State: what it means
The data an app is holding right now, such as its list of items and which screen is showing.
How it shows up when you build
- Keep track of things: The data an app is holding right now, such as its list of items and which screen is showing.
A tip
- The rule: change state, then call render(). Never edit the screen and the data separately.
Practise it
Build it with an AI tool and check the result in these exercises:
- 2. Keep track of things (State and render)
- 4. More than one screen (Screens and navigation)
- 7. When things go wrong (Empty and error states)