You've been tasked with implementing state updates in a Redux application. Which principle should you adhere to ensure the predictability of state changes?

  • Encapsulation
  • Immutability
  • Inheritance
  • Polymorphism
To ensure the predictability of state changes in a Redux application, you should adhere to the principle of immutability. This means that state should not be modified directly; instead, new copies of the state should be created when changes are made. Immutability ensures that you can track changes over time and avoid unexpected side effects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *