import { combineReducers } from 'redux';
import events from './eventsReducer';
import categories from './categoriesReducer';
import zoom from './zoomReducer';
import mouse from './mouseReducer';
import ui from './uiReducer';

const rootReducer = combineReducers({
	events,
	categories,
	zoom,
	mouse,
	ui,
});

export default rootReducer;

import events from './eventsReducer';
import categories from './categoriesReducer';
import zoom from './zoomReducer';
import mouse from './mouseReducer';
import ui from './uiReducer';

const rootReducer = (state = {}, action = {}) => ({
	events: events(state.events, action),
	categories: categories(state.categories, action),
	zoom: zoom(state.zoom, action),
	mouse: mouse(state.mouse, action),
	ui: ui(state.ui, action),
});

export default rootReducer;

Remove usage of combineReducer in rootReducer
Remove usage of combineReducer in rootReducer
