Let's look at a list of frequently asked questions related to Immutable.js, as follows:
- Do I need Immutable JS in my application?
If you are not sure what benefits Immutable JS can bring to your application, you should not use it. Just because a library is being used by enterprise applications does not mean that you have to use it. Before considering using it, you should understand it and feel a need for using it.
- Is there something wrong with mutating objects?
There is nothing wrong with mutation. Several developers in the community have discussed and presented their thoughts regarding mutating objects, and how it does not harm the application. Why should we complicate things when we can do them in simpler ways? Say, if we have object money and it dies, we do not need a second monkey to track the change? A lot of people would argue that ...