You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
602 B
31 lines
602 B
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!'
|
|
])
|
|
)
|
|
}
|
|
|
|
|