How to register local components with defineComponent in VueJS 3.0 How to register local components with defineComponent in VueJS 3.0 typescript typescript

How to register local components with defineComponent in VueJS 3.0


You could do it simply as before by adding that component to components option :

import ComponentA from './ComponentA.vue'export default defineComponent({    setup() {        const count = ref(0)        return { count }    },    components: {        ComponentA     }});

LIVE DEMO