FlashcardIntermediate

Immutability When Updating State

Always create new objects or arrays instead of mutating existing state directly.

Question

Why must you update state immutably in React Native?

Click to reveal answer