aboutsummaryrefslogtreecommitdiff
path: root/modern/src/index.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-07 16:09:01 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-07 16:09:01 +1200
commit72aa50650203d6db0b17de59bfd98c9d5b06e3e7 (patch)
tree0cdd9aced5356f8e32d23069cd0bec2b5c8ef484 /modern/src/index.js
parent06c4ee387669b1ccb5aa3928fbaa7c3650bfb7fa (diff)
downloadtrackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.gz
trackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.tar.bz2
trackermap-web-72aa50650203d6db0b17de59bfd98c9d5b06e3e7.zip
Add redux and load positions
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();