Glossary / Render function
Render function: what it means
One function that draws the screen from the state. Change the state, call it again, and the screen is right.
How it shows up when you build
- Keep track of things: One function that draws the screen from the state. Change the state, call it again, and the screen is right.
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)