Learning how to update a state with nested objects
- Fork this repo to your github account and clone it to your desktop
- Npm install
Talk about the issue faced
- Install lodash library
- Navigate to lodash documentation and locate cloneDeep()
- Import lodash and use cloneDeep() instead of spread operator [... ] to resolve the issue
- Prove that it is fixed
- Commit your changes
- Install immer library
- Navigate to immer documentation and locate produce()
- Import immer and use produce() instead of cloneDeep() to resolve the issue
- Prove that it is fixed
- Commit your changes