aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/template.js
blob: f16f3c363d17f4b79cf2b2469b9db656da00b062 (plain) (blame)
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
27
28
29
30
31
const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const actions = require('./actions')

module.exports = connect(mapStateToProps)(COMPONENTNAME)

function mapStateToProps(state) {
  return {}
}

inherits(COMPONENTNAME, Component)
function COMPONENTNAME() {
  Component.call(this)
}

COMPONENTNAME.prototype.render = function() {
  const props = this.props

  return (
    h('div', {
      style: {
        background: 'blue',
      }
    }, [
      'Hello, world!'
    ])
  )
}