diff --git a/docs/hyperscript.md b/docs/hyperscript.md index f6097e9e..af1067e9 100644 --- a/docs/hyperscript.md +++ b/docs/hyperscript.md @@ -370,7 +370,7 @@ var BetterSelect = { // PREFER refactor variability out var BetterLabeledComponent = { view: function(vnode) { - m("div", [ + return m("div", [ m("label", vnode.attrs.title), vnode.children, ])