index.js
957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
/**
* # reducers
*
* This class combines all the reducers into one
*
*/
'use strict';
/**
* ## Imports
*
* our 4 reducers
*/
import route from './route/route';
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 subject from './subject/subjectPostReducer';
import message from './message/messageReducer';
import likeList from './likeList/likeListReducer';
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({
route,
app,
home,
section,
posting,
user,
userThatNotMe,
subject,
message,
likeList,
});
export default rootReducer;