Adding Recipes
Understand how to implement adding recipes in a Redux store by defining actions and updating state immutably. Learn to dispatch actions like ADD_RECIPE and modify reducers to create new state objects without mutating existing data.
We'll cover the following...
We'll cover the following...
To implement adding recipes, we need to find a way to modify our store. reducers can only do store modifications in response to actions. This means we need to define an action structure and modify our reducer to support it.
Actions in Redux are nothing more than plain objects that have a mandatory type property. We will be using ...