aboutsummaryrefslogtreecommitdiff
path: root/modern/src/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/index.js')
-rw-r--r--modern/src/index.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/modern/src/index.js b/modern/src/index.js
index 016a4af1..66d3b048 100644
--- a/modern/src/index.js
+++ b/modern/src/index.js
@@ -1,13 +1,20 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
+import { Provider } from 'react-redux';
+import { createStore } from 'redux'
+import rootReducer from './reducers';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
+const store = createStore(rootReducer);
+
ReactDOM.render((
- <BrowserRouter>
- <App />
- </BrowserRouter>
+ <Provider store={store}>
+ <BrowserRouter>
+ <App />
+ </BrowserRouter>
+ </Provider>
), document.getElementById('root'));
registerServiceWorker();