react-hyperscript-beefy-boilerplate
Version:
A boilerplate for react-hyperscript using browserify with beefy and ES6.
19 lines (14 loc) • 365 B
JavaScript
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)
)
}