current position:Home>The use of JSX custom instruction in vue3

The use of JSX custom instruction in vue3

2022-06-24 10:06:20CSDN Q & A

 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

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/175/202206171826515318.html

Random recommended