aboutsummaryrefslogblamecommitdiffstats
path: root/ui/app/template.js
blob: d15b30fd20502f028eed6451edb87e00f0d8cf50 (plain) (tree)
1
2
3
4
5
6
7
8



                                              


                                                        
                                  



                                  
                           


                      
                                              
                          



              
                           
        
        
                               



      
const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect

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, ${props.sender}`,
    ])
  )
}