function mapStateToProps(state) {
  return {
    isFetching: state.cocapi.isFetching,
    lastUpdated: state.cocapi.lastUpdated,
    item: state.cocapi.item,
  };
}
// Retrieve data from store as props
Retrieve data from store as props
Retrieve data from store as props
function mapStateToProps(state) {
  return {
    isFetching: state.cocapi.isFetching,
    lastUpdated: state.cocapi.lastUpdated,
    item: state.cocapi.item,
  };
}
function mapStateToProps ( state ) { return { isFetching : state . cocapi . isFetching , lastUpdated : state . cocapi . lastUpdated , item : state . cocapi . item , } ; }
Retrieve data from store as props
Retrieve data from store as props