Answers for "react/redux reducers sintaxe"

0

react/redux reducers sintaxe

const reduxSinaxe = (state = [], action) => {
  switch (action.type) {
    case "@smthg/ACTION":
      const { anyConst } = action;
      return [...state, anyConst];

    default:
      return state;
  }
};

export default reduxSinaxe;
Posted by: Guest on December-02-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language