2016-04-14 00:28:44 +02:00
|
|
|
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)
|
|
|
|
|
2016-06-21 22:18:32 +02:00
|
|
|
function mapStateToProps (state) {
|
2016-04-14 00:28:44 +02:00
|
|
|
return {}
|
|
|
|
}
|
|
|
|
|
|
|
|
inherits(COMPONENTNAME, Component)
|
2016-06-21 22:18:32 +02:00
|
|
|
function COMPONENTNAME () {
|
2016-04-14 00:28:44 +02:00
|
|
|
Component.call(this)
|
|
|
|
}
|
|
|
|
|
2016-06-21 22:18:32 +02:00
|
|
|
COMPONENTNAME.prototype.render = function () {
|
2016-06-17 00:51:39 +02:00
|
|
|
const props = this.props
|
2016-04-14 00:28:44 +02:00
|
|
|
|
|
|
|
return (
|
|
|
|
h('div', {
|
|
|
|
style: {
|
2016-06-17 01:49:10 +02:00
|
|
|
background: 'blue',
|
2016-06-21 22:18:32 +02:00
|
|
|
},
|
2016-04-14 00:28:44 +02:00
|
|
|
}, [
|
2016-06-21 22:56:04 +02:00
|
|
|
`Hello, ${props.sender}`,
|
2016-04-14 00:28:44 +02:00
|
|
|
])
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|