Skip to content
BuildExercises

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:

Related terms

Checks, Cross-site scripting, State