React JS Tutorial - Redux and React - Immutable Lesson#17c - Redux Reducer Rules and Immutability

preview_player
Показать описание
Redux Reducers and Immutable Updates - Redux Reducer Rules and Immutability - React JS Tutorial - Redux and React - Immutable and Pure functions

For immutable updates, reducer functions create a copy of the state and modify it . Four reducer patterns discussed in the video
- Update a JSON
- Insert an element in array
- Delete an element in array
- Update an element in array.

Reducer Rules
1. They should only calculate the new state value based on the state and action arguments
2. They are not allowed to modify the existing state. Instead, they must make immutable updates, by copying the existing state and making changes to the copied values.
3. They must not do any asynchronous logic or other "side effects"

Complete React Lessons and ReactJS playlist -

Learn complete React in this video tutorial series. A must watch for all ReactJS beginners and learners. With lots of samples, code, practice questions and projects, learn and master React and become an awesome front end developer.
Рекомендации по теме
Комментарии
Автор

be motivated i like this channel very much, I also recommend to friends

timestamper