Why Immutable Js?
What is this article about?
In my previous post of “Why Redux?” we get to know why any state manager is necessary for large web apps, similar to that it is also equally important to use Immutable data structure if we are using a state manager, Why? We’ll learn that here.
First we need to know what is mutable and what is immutable before learning why to use Immutable js, Immutable objects (data structure) are simply objects whose state (the objects data) cannot change after construction. Mutable objects (data structure) have fields that can be changed, immutable objects have no fields that can be changed after the object is created.