
Redux
Define methods we want to access from props in the component:

Then access this method inside the component via props:

Add whatever properties you want to get in the props in the component:

- Import { createStore} from ‘redux’
- Import rootReducer from ‘<path>’
- Import { Provider } from ‘react-redux’
- Wrap <App> with store provider <Provider></Provider>

Root Reducer combines different reducers together:

Create a reducer:
- add initState
- add arrow function





