index.js 650 Bytes
/**
/**
 * # reducers
 *
 * This class combines all the reducers into one
 *
 */
'use strict';
/**
 * ## Imports
 *
 * our 4 reducers
 */
import app from './app/appReducer';
import home from './home/homeReducer';
import section from './section/sectionReducer';
import posting from './posting/postingReducer'
import user from './user/userReducer';

import { combineReducers } from 'redux';

/**
 * ## CombineReducers
 *
 * the rootReducer will call each and every reducer with the state and action
 * EVERY TIME there is a basic action
 */
const rootReducer = combineReducers({
	app,
	home,
	section,
	posting,
	user,
});

export default rootReducer;