index.js 910 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 userThatNotMe from './userThatNotMe/userThatNotMeReducer';
import setting from './setting/settingReducer';
import subject from './subject/subjectPostReducer';
import message from './message/messageReducer';

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,
	userThatNotMe,
	setting,
	subject,
	message,
});

export default rootReducer;