Tell us what’s happening:
Okay, know I have this:
But why I get an error “can not read property ‘pop’ of undefinded”???
Your code so far
const state = [];
// change code below this line
let mapStateToProps = (state = [], messages) => {
let Obj = {
state: [],
messages: state
};
return Obj.messages
};
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
.
Link to the challenge: