vue
vue copied to clipboard
Define functional component in vue2.7 as a function
What problem does this feature solve?
Define functional components with the same format as Vue3. This make the future migration easier.
What does the proposed API look like?
Juse use the function format used by Vue3. Then export the FunctionalComponent
type.