Guest User

Untitled

a guest
Jul 17th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import {
  2. ADD_TODO_LIST,
  3. DELETE_TODO_LIST,
  4. UPDATE_TODO_LIST} from '../type';
  5.  
  6. case ADD_TODO_LIST:
  7. return { ...state, todoLists:[ ...state.todoLists, action.payload]};
  8.  
  9. case DELETE_TODO_LIST:
  10. return { ...state, todoLists: action.payload};
  11.  
  12. case UPDATE_TODO_LIST:
  13. return { ...state, todoLists: action.payload};
  14.  
  15. default :
  16. return state;
  17. }
Add Comment
Please, Sign In to add comment