ping-keyed-elements-in-arrays"><a href="#avoid-wrapping-keyed-elements-in-arrays">Avoid wrapping keyed elements in arrays</a></h4>
<p>Arrays are <a href="vnodes.html">vnodes</a>, and therefore keyable. You should not wrap arrays around keyed elements</p>
<pre><code class="language-javascript">// AVOID
users.map(function(u) {
    return [ // fragment is a vnode, and therefore keyable
        m(&quot;button&quot;, {key: u.id}, u.name)
    ]
})

// PREFER
users.map(function(u) {
    return m(&quot;button&quot;