Problem with Extract State Logic to Redux

Problem with Extract State Logic to Redux
0

#1

I tried do define the action with:

const addMessage=(message)=>{
  type:ADD
  message:message
}

and it didn’t work, it had to do:

function addMessage(message).

I wonder, is it a glitch or an actual thing?


React and Redux - Extract State Logic to Redux
#2

I moved your question to its own topic because you were asking a question related to your own code for a challenge and were not answering the OP of the other thread. It is always best to create your own thread for you specific question(s). Also, it is advisable to use the Ask for Help button on the challenge, so it auto-populates with your current code and the challenge url.

Thank you.


#3

please remove the post


#4

Did you solve your problem with the challenge?