August 2017
Beginner
374 pages
10h 41m
English
Normally, we would modify an array via functions such as push, unshift, and splice. However, we cannot directly use these on the state in a reducer, as it would mutate the previous state directly.
To work around this, we can use slice to create copies of the array and create a new array based on these slices.
Read now
Unlock full access