[Vuejs]-How to wrap multiple vnodes in an outer component?

1👍

h accepts 1-3 arguments.

Props and children arguments are swapped in one call, should be:

h('div', { onClick: () => alert('foo') }, [
    ...
])

Leave a comment