Immutability patterns
Comes up in: React, JavaScript
This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.
What it covers
- non-mutating array methods (
toSorted,toReversed,toSpliced,with) - updating nested state
- structural sharing
- Immer idea
Words you will know
What you will practise
- update nested state 5 ways