nifty-wallet/ui/app/components/template.js

19 lines
365 B
JavaScript
Raw Normal View History

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 () {
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
return (
2016-06-21 13:56:04 -07:00
h('span', props.message)
)
}