Search⌘ K

Introduction to ImmutableJS

Explore how ImmutableJS introduces immutable data structures to JavaScript, helping you manage state predictably in React and Redux apps. Understand how to use ImmutableJS methods like fromJS and set to avoid unwanted mutations and enhance app performance.

We'll cover the following...

As we discovered in Chapter 4: Redux, immutability is quite helpful when developing applications! It makes it so much easier to reason about what is happening to your data, as nothing can be mutated from somewhere entirely different.

The problem is that JavaScript is by default a mutable language. Other developers that don’t have this intricate knowledge of immutability might still mess up, mutate the state and break our app in unexpected ...