Map Dispatch to Props

Tell us what’s happening:

Your code so far


const addMessage = (message) => {
  return {
    type: 'ADD',
    message: message
  }
};

// change code below this line
mapDispatchToProps(newMessage){
return  {submitNewMessage : function(newMessage){
  dispatch(addMessage(newMessage));}
} 
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.139 Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react-and-redux/map-dispatch-to-props/

What is your specific question?

Got it please ignore the post

You just forgot to add “function”.