blob: 8f427659bf312cc91a93cf24789a804542ae8c16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
//
// main entry point for app execution
//
// This is determined by the 'entry' option in webpack.config.js
//
import React from 'react'
import ReactDOM from 'react-dom'
import PanelSwitcher from 'components/panel_switcher'
import App from 'app'
class Main extends React.Component {
render() {
return React.createElement(PanelSwitcher)
}
componentDidMount() {
App.initialize()
}
}
ReactDOM.render(
React.createElement(Main),
document.getElementById('app')
)
|