rator and Array methods.</p>
<pre><code class=language-javascript>// PREFER
var BetterListComponent = {
    view: function(vnode) {
        return m(&quot;ul&quot;, vnode.attrs.items.map(function(item) {
            return m(&quot;li&quot;, item)
        }))
    }
}</code></pre>
<h4 id=avoid-creating-vnodes-outside-views><a href=#avoid-creating-vnodes-outside-views>Avoid creating vnodes outside views</a></h4>
<p>When a redraw encounters a vnode which is strictly equal to the one in the previous render, it w