export function forms(state = initialState, action) { if(action.type === UPDATE_FORM) { // newStory: formValue return { ...state, [action.payload.path]: action.payload.value } } }