diff options
Diffstat (limited to 'modern/src/index.js')
-rw-r--r-- | modern/src/index.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/modern/src/index.js b/modern/src/index.js new file mode 100644 index 00000000..527a4d69 --- /dev/null +++ b/modern/src/index.js @@ -0,0 +1,21 @@ +import 'typeface-roboto' +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(( + <Provider store={store}> + <BrowserRouter> + <App /> + </BrowserRouter> + </Provider> +), document.getElementById('root')); + +registerServiceWorker(); |