Subscribe on changes!

h function add attributes

avatar
Mar 8th 2023

What problem does this feature solve?

h('div',{ attr: "xx" }) =>

I want to become

Because when I insert a new style, I don't know the current data-v-xxx, I want to add data-v-xxx. what's more the unocss syntax can work as

, I think the h function should have this API to add attr without value

What does the proposed API look like?

h('div',{ attr: "xx" }) =>

I want to become