A demo react app that uses Immer and Redux together.
In this demo app we are using Immer curried producer as reducer where the first argument is a recipe function and second is default value(initial state that generally passes to the reducer)
In the project directory, you can run following commands:
npm i
npm start
Followings are the resource from which I dabbled about ImmerJS
- immerjs.github.io is an official website
- Youtube link for immer explain basic usage of Immer with react redux
- Medium Post - Simplify Redux reducers with Immer
- Github issue discussion for passing second parameter to curried producer as reducer default state