-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (22 loc) · 681 Bytes
/
Copy pathApp.js
File metadata and controls
27 lines (22 loc) · 681 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
import React from 'react';
import {createStore, combineReducers, applyMiddleware} from 'redux';
import {Provider} from 'react-redux';
import ReduxThunk from 'redux-thunk';
import Root from './src/screens/Root';
import authReducer from './src/store/reducers/auth';
import postReducer from './src/store/reducers/post';
import commentReducer from './src/store/reducers/comment';
const rootReducer = combineReducers({
auth: authReducer,
posts: postReducer,
comment: commentReducer,
});
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
const App = () => {
return (
<Provider store={store}>
<Root />
</Provider>
);
};
export default App;