mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
27 lines
572 B
JavaScript
27 lines
572 B
JavaScript
import 'babel-polyfill';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { Provider } from 'react-redux';
|
|
|
|
import '../styles/main.scss';
|
|
import '../images/favicon.ico';
|
|
import configureStore from './stores/configureStore';
|
|
|
|
const store = configureStore();
|
|
|
|
function renderApp() {
|
|
const App = require('./components/app').default;
|
|
ReactDOM.render(
|
|
(
|
|
<Provider store={store}>
|
|
<App />
|
|
</Provider>
|
|
), document.getElementById('app')
|
|
);
|
|
}
|
|
|
|
renderApp();
|
|
if (module.hot) {
|
|
module.hot.accept('./components/app', renderApp);
|
|
}
|