React · Middle · Question 62 of 75

What happens when a component's state changes but the output JSX is identical?

Explanation

Rendering (calling components) and committing (changing the DOM) are separate. React only touches DOM nodes whose output differs.

Further reading

Problem with a question

React · Middle · question 62

Test yourself

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

Take this quiz