Extract State Logic to Redux ,some problem

Extract State Logic to Redux ,some problem
0

#1

Tell us what’s happening:
lt can’t pass

Your code so far


// define ADD, addMessage(), messageReducer(), and store here:
const ADD = 'ADD';

function addMessage (msg) {
  return {
    type: ADD,
    message: msg
  }
};
const messageReducer = (state = [], action) => {
  switch (action.type) {
    case ADD: return [...state,action.meesage]
    default:
      return state;
  }
};
const store = Redux.createStore(messageReducer);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react-and-redux/extract-state-logic-to-redux


#2

I did it,it’s a small err.