Design Patterns · Junior · Question 62 of 75

Why prefer creating new objects over mutating existing ones in UI state?

Explanation

React, Redux and many tools rely on reference changes to detect updates.

Further reading

Problem with a question

Design Patterns · Junior · question 62

Test yourself

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

Take this quiz