From 073393af311d36c8ca7570ff0d3f0a3117c0b544 Mon Sep 17 00:00:00 2001 From: elijah Date: Fri, 16 Sep 2016 14:02:32 -0700 Subject: [pkg] rename www to ui --- ui/app/main.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 ui/app/main.js (limited to 'ui/app/main.js') diff --git a/ui/app/main.js b/ui/app/main.js new file mode 100644 index 00000000..b1628953 --- /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') +) -- cgit v1.2.3