summaryrefslogtreecommitdiff
path: root/src/leap/bitmask_js/app/main.js
blob: b162895372dbaa6d4730288ee652259c85eb9d26 (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.start()
  }
}

ReactDOM.render(
  React.createElement(Main),
  document.getElementById('app')
)