this part is quite simple as it is similar to the previous one, so it's up to you ;-)
export const setWines = (wines) => ???
export const fetchWinesFrom = (region) => ???
export const wines = (state = [], action) => ???
function mapFromStoreToProps(store) {
return {
wines: store.wines,
loading: store.loading === 'HTTP_LOADING',
};
}
export const WineListPage = connect(mapFromStoreToProps)(_WineListPage);
Now you're ready to use redux
to load some wine details. Go to the next step to learn how to do that.