Tell us what’s happening:
I’m not sure what the instruction tells me to do with the messageReducer function. I’ve read the hint but I still don’t understand the answer
Your code so far
// Define ADD, addMessage(), messageReducer(), and store here:
const ADD = "ADD"
const addMessage = (message) => {
return { type: ADD, message: message }
}
const messageReducer = () => {
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
React and Redux - Extract State Logic to Redux