2016-05-03 14:32:22 -07:00
|
|
|
const Component = require('react').Component
|
|
|
|
const h = require('react-hyperscript')
|
|
|
|
const inherits = require('util').inherits
|
|
|
|
|
|
|
|
module.exports = NewComponent
|
|
|
|
|
|
|
|
inherits(NewComponent, Component)
|
2016-06-21 13:18:32 -07:00
|
|
|
function NewComponent () {
|
2016-05-03 14:32:22 -07:00
|
|
|
Component.call(this)
|
|
|
|
}
|
|
|
|
|
2016-06-21 13:18:32 -07:00
|
|
|
NewComponent.prototype.render = function () {
|
2016-06-21 13:56:04 -07:00
|
|
|
const props = this.props
|
2016-05-03 14:32:22 -07:00
|
|
|
|
|
|
|
return (
|
2016-06-21 13:56:04 -07:00
|
|
|
h('span', props.message)
|
2016-05-03 14:32:22 -07:00
|
|
|
)
|
|
|
|
}
|