src: Adapt to insights-chrome 2.0
This commit is contained in:
parent
e85e51e574
commit
4658f59d0b
17 changed files with 98 additions and 60 deletions
|
|
@ -1,18 +1 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { BrowserRouter as Router } from 'react-router-dom';
|
||||
import { Provider } from 'react-redux';
|
||||
import { init } from './store';
|
||||
import App from './App';
|
||||
import logger from 'redux-logger';
|
||||
import getBaseName from './Utilities/getBaseName';
|
||||
|
||||
ReactDOM.render(
|
||||
<Provider store={ init({}, logger).getStore() }>
|
||||
<Router basename={ getBaseName(window.location.pathname) }>
|
||||
<App />
|
||||
</Router>
|
||||
</Provider>,
|
||||
|
||||
document.getElementById('root')
|
||||
);
|
||||
import('./bootstrap-dev');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue