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.
19 lines
365 B
19 lines
365 B
7 years ago
|
const Component = require('react').Component
|
||
|
const h = require('react-hyperscript')
|
||
|
const inherits = require('util').inherits
|
||
|
|
||
|
module.exports = NewComponent
|
||
|
|
||
|
inherits(NewComponent, Component)
|
||
|
function NewComponent () {
|
||
|
Component.call(this)
|
||
|
}
|
||
|
|
||
|
NewComponent.prototype.render = function () {
|
||
|
const props = this.props
|
||
|
|
||
|
return (
|
||
|
h('span', props.message)
|
||
|
)
|
||
|
}
|