Adding Ingredients
Learn how to add new ingredients in the application.
We'll cover the following...
Similar to adding recipes, this step will require us to modify the reducer
again to add support for adding ingredients:
const reducer = (state, action) => {
switch (action.type) {
case 'ADD_RECIPE':
return Object.assign({}, state, {
recipes: state.recipes.concat({ name: action.name })
});
case
...