diff --git a/js/lib/component.js b/js/lib/component.js index 1709592f5..379fc3ac9 100644 --- a/js/lib/component.js +++ b/js/lib/component.js @@ -23,6 +23,9 @@ export default class Component { */ static component(props) { props = props || {}; + if (this.props) { + props = this.props(props); + } var view = function(component) { component.props = props; return component.view();