summaryrefslogtreecommitdiff
path: root/ui/app/main.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-09-16 14:02:32 -0700
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-22 11:40:11 -0400
commit073393af311d36c8ca7570ff0d3f0a3117c0b544 (patch)
treee59286ac350ba17110392f53b6e48bcedfd12ef1 /ui/app/main.js
parentae5a20d059209f2027c05820dc3b4cfe7346c8a8 (diff)
[pkg] rename www to ui
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')
+)