Skip to main content

15.02 Installing Redux And React Redux

Installing Redux and React Redux

npm install --save redux react-redux

New actions.js

actions.js
export const ADD_INGREDIENT = "ADD_INGREDIENT";
export const REMOVE_INGREDIENT = "REMOVE_INGREDIENT";

New reducer.js

reducer.js
const initialState = {
ingredients: null,
totalPrice: 4,
};

const reducer = (state = initialState, action) => {};

export default reducer;