Immutability is changing - time for an exploration of why Immer is a philosophical fit with React! Why has Immer gained so much love this year, and does it have staying power?
This time, I chose to implement it using React, Redux and ImmutableJS. I really enjoyed the functional nature of this stack — state management is so much simpler and predictable this way.
Imagine you have a form for editing a user. It’s common to create a single change handler to handle changes to all form fields. It may look something like this…