-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
46 lines (32 loc) · 958 Bytes
/
index.js
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
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { Provider } from 'react-redux'
import thunk from 'redux-thunk';
import { applyMiddleware, compose, combineReducers, createStore } from 'redux'
import userReducer from './Reducers/userReducer';
import repoReducer from './Reducers/repoReducer';
import store from './Store/index';
//import store from './Store/index';
/*
const allReducers = combineReducers({
user: userReducer,
repo: repoReducer
});
const allStoreEnhancers = compose(
applyMiddleware(thunk),
window.devToolsExtension && window.devToolsExtension()
);
const store = createStore(
allReducers,
{
user: null,
repo: null
},
allStoreEnhancers
);
*/
ReactDOM.render(<Provider store = {store}><App /></Provider>, document.getElementById('root'));
registerServiceWorker();