The Immutable.js README has a much more complete description of immutability and why you might want to use the library. Also worth mentioning that Immer is an alternative which is a bit easier to get started with. - Source: dev.to / over 2 years ago
You could create explicitly immutable references and state by using a tool like Immer.js or Immutable.js and do something like your example using their API. Source: almost 3 years ago
There are also libraries such as Immer and Immutable that were created to make our lives easier while dealing with immutability in JavaScript. - Source: dev.to / over 3 years ago
Use persistent immutable data structures (as implemented in, for instance, mori or Immutable.js) to represent the state. As much as possible, push calculations into referentially transparent functions (i.e., input depends purely on output) which take persistent data. Write the interactions with the real world in imperative style. Source: over 3 years ago
Do you know an article comparing Immutable.js to other products?
Suggest a link to a post with product alternatives.
This is an informative page about Immutable.js. You can review and discuss the product here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.