beledComponent = {
    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 an HTML tree, making the code more verbose and harder to understand. Constructing an virtual DOM tree procedur