What's the proper way to define JSX components?
I was trying out JSX components in a Nuxt project and it seems top-level composables work just like the setup method? I couldn't find anything about this usage, all examples in both Nuxt and Vue docs use
defineComponent
and write everything inside setup
, so is this even correct?
1 Reply
yeah this should do - any issues you’re encountering?