nervjs
Version:
A react-like framework based on virtual-dom
19 lines (14 loc) • 339 B
JavaScript
import { mountStatelessComponent } from './lifecycle'
class StateLessComponent {
constructor (tagName, props) {
this.tagName = tagName
this._owner = props.owner
delete props.owner
this.props = props
}
type = 'StateLess'
init () {
return mountStatelessComponent(this)
}
}
export default StateLessComponent