Not sure I understand the question, but if you mean whether the Composition API (using setup function) that's available in Vue3 is mandatory, or precludes one from using class-based component definition (Γ la Vue2). The answer is that you can mix them. Here is an example that has two components (using same template)
Not sure I understand the question, but if you mean whether the Composition API (using setup function) that's available in Vue3 is mandatory, or precludes one from using class-based component definition (Γ la Vue2). The answer is that you can mix them. Here is an example that has two components (using same template)
jsfiddle.net/dapo/9hunLqgk/
Exactly what I mean, and thank you very much for the sample code.