mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
25 lines
590 B
JavaScript
25 lines
590 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 TerminalApp = require('./components/terminal-app').default;
|
|
ReactDOM.render((
|
|
<Provider store={store}>
|
|
<TerminalApp />
|
|
</Provider>
|
|
), document.getElementById('app'));
|
|
}
|
|
|
|
renderApp();
|
|
if (module.hot) {
|
|
module.hot.accept('./components/terminal-app', renderApp);
|
|
}
|