1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 19:10:22 +01:00
metamask-extension/ui/app/template.js

31 lines
579 B
JavaScript
Raw Normal View History

const inherits = require('util').inherits
const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
module.exports = connect(mapStateToProps)(COMPONENTNAME)
2016-06-21 22:18:32 +02:00
function mapStateToProps (state) {
return {}
}
inherits(COMPONENTNAME, Component)
2016-06-21 22:18:32 +02:00
function COMPONENTNAME () {
Component.call(this)
}
2016-06-21 22:18:32 +02:00
COMPONENTNAME.prototype.render = function () {
2016-06-17 00:51:39 +02:00
const props = this.props
return (
h('div', {
style: {
2016-06-17 01:49:10 +02:00
background: 'blue',
2016-06-21 22:18:32 +02:00
},
}, [
2016-06-21 22:56:04 +02:00
`Hello, ${props.sender}`,
])
)
}