summaryrefslogtreecommitdiff
path: root/ui/app/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/main.js')
-rw-r--r--ui/app/main.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/ui/app/main.js b/ui/app/main.js
new file mode 100644
index 0000000..b162895
--- /dev/null
+++ b/ui/app/main.js
@@ -0,0 +1,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.start()
+ }
+}
+
+ReactDOM.render(
+ React.createElement(Main),
+ document.getElementById('app')
+)