/**
 * Created by taha on 9/10/17.
 */
import * as types from '../actions/actionTypes';

export default function courseReducer(state = [], action) {
  switch(action.type) {
    case types.CREATE_COURSE:
      return [...state,
        Object.assign({}, action.course)
      ];

    default:
      return state;
  }
}

@@ -269,16 +269,82 @@
       %5D;
+%0A    case types.LOAD_COURSES_SUCCESS:%0A      return action.courses;
 %0A%0A    de

Load Courses in Reducer