diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-07 16:09:01 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-07 16:09:01 +1200 |
commit | 72aa50650203d6db0b17de59bfd98c9d5b06e3e7 (patch) | |
tree | 0cdd9aced5356f8e32d23069cd0bec2b5c8ef484 /modern/src/index.js | |
parent | 06c4ee387669b1ccb5aa3928fbaa7c3650bfb7fa (diff) | |
download | trackermap-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.js | 13 |
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(); |