The use of JSX custom instruction in vue3

CSDN Q & A 2022-06-24 10:06:20 阅读数:878

usejsxcustominstructionvue3
 Custom directive only argument It is recommended to use const App = { directives: { custom: customDirective }, setup() { return () => <a v-custom:arg={val} />; },};const App = { directives: { custom: customDirective }, setup() { return () => <a v-custom={[val, "arg", ["a", "b"]]} />; },};

I was stunned by the description in the document ,vue3+jsx What are the specific steps to use custom instructions

版权声明:本文为[CSDN Q & A]所创,转载请带上原文链接,感谢。 https://primo.wiki/2022/175/202206171826515318.html