mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-16 20:11:09 +00:00
25 lines
594 B
JavaScript
25 lines
594 B
JavaScript
require('../styles/main.less');
|
|
require('../images/favicon.ico');
|
|
|
|
import 'babel-polyfill';
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { Provider } from 'react-redux';
|
|
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);
|
|
}
|