Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {
- ADD_TODO_LIST,
- DELETE_TODO_LIST,
- UPDATE_TODO_LIST} from '../type';
- case ADD_TODO_LIST:
- return { ...state, todoLists:[ ...state.todoLists, action.payload]};
- case DELETE_TODO_LIST:
- return { ...state, todoLists: action.payload};
- case UPDATE_TODO_LIST:
- return { ...state, todoLists: action.payload};
- default :
- return state;
- }
Add Comment
Please, Sign In to add comment