The main reason to use immutable types is preventing data from vanishing. When you change state in
React or any other framework, it is recommended to change state values by immutable operations since it makes easier to record changing state and diagnosing errors if they ever occur.