How does one set attributes on Vue.js tag nodes (VNode) programmatically without a need to define vnode.data and vnode.data.attrs each time?
The way I use is far from optimal:
const itemNode = h('div', item.title)
itemNode.data = {}
itemNode.data.attrs = {}
itemNode.data.attrs.class = 'some-class'