OBJECTIVES
- Create a project using create-react-app.
- Add Redux to your project
- Create a Counter component start from zero if you click + you add 1, if you click - you decrement by -1.
- You are free to design your counter as you like
- we are going to create the initial state { counter: 0 } and pass it to the reducer
- Create reducer.js that contain your reducer function
- Connect Counter component with the store to consume the initial state
- Whenever you click + or - of your counter, you will dispatch an action to modify your global state counter
- Add a middleware to log your actions and your current state