State Management · Junior · Question 1 of 75

What is "state" in a React component?

Explanation

State is the component's memory between renders: a counter value, form input, whether a menu is open. A regular let variable resets on every render and its change doesn't tell React to update the UI. Props are read-only inputs owned by the parent.

Further reading

Problem with a question

State Management · Junior · question 1

Test yourself

Take the State Management · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz