Chapter 2
Integrating Redux with React
Section 6
Dispatching Actions
We want here to make some changes in the state by dispatching actions, we created a new folder for actions and then start dispatching after mapping dispatch to props in the components in the connect function. - Create actions folder and create types.js file to hold all the actions times as constants and export them - Create action for orders and use the types from types.js file and handle the action in the reducer - Import the action creator to the component and map dispatch to props to be used as props