e),
            m(&quot;select&quot;),
        ])
    }
}

// PREFER refactor variability out
var BetterLabeledComponent = {
    view: function(vnode) {
        return m(&quot;div&quot;, [
            m(&quot;label&quot;, vnode.attrs.title),
            vnode.children,
        ])
    }
}
</code></pre>
<h4 id="avoid-statements-in-view-methods"><a href="#avoid-statements-in-view-methods">Avoid statements in view methods</a></h4>
<p>Javascript statements often require changing the naturally nested structure of