nifty-wallet/ui/app/template.js

31 lines
579 B
JavaScript
Raw Normal View History

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