npm install
npm start
React and redux basic flow
- Any page will have a container, which connects mapStateToProps & mapDispatchToProps.
- When click on a button, dispatch an action.
dispatch("BUTTON_CLIKED", "title");
- ...
- Create Store - from redux
- While creating store , pass reducers as parameter
- Reducer contains - Switch case of action types, returns JSON. (BUTTON_CLIKED)