Why immutability?
When working on a React application that needs to handle state, one of the main pitfalls to watch out for is accidental mutations. Which is fancy talk for mistakenly modifying stuff you didn't want to change:
In this case, imagine we're in a Profile form, user holds the current user information and we want to create an updated user object with the modified attributes. As you ...
I like to think I'm a rather organised person. Not in every aspect of my life and not to the same extent in each, but I try my best to keep my thoughts in line. The problem with this, unfortunately, is that there is such a thing as counterproductive organisation. That is, the moment you're organised in such a fractured and unreliable way, that it becomes harmful to your end goal.
It doesn't start...
Why immutability?
When working on a React application that needs to handle state, one of the main pitfalls to watch out for is accidental mutations. Which is fancy talk for mistakenly modifying stuff you didn't want to change:
In this case, imagine we're in a Profile form, user holds the current user information and we want to create an updated user object with the modified attributes. As you ...
I like to think I'm a rather organised person. Not in every aspect of my life and not to the same extent in each, but I try my best to keep my thoughts in line. The problem with this, unfortunately, is that there is such a thing as counterproductive organisation. That is, the moment you're organised in such a fractured and unreliable way, that it becomes harmful to your end goal.
It doesn't start...