D
D
Darijj2022-01-24 22:05:48
Vue.js
Darijj, 2022-01-24 22:05:48

Is there an analogue of the Vue.extend function in Vue 3?

I tried to implement the behavior of the Vue.extend function by creating virtual nodes with the h function, I also tried creating a new application instance, but when rendering these components into a tree, they do not have access to injected dependencies. Here I have created a Codesandbox which illustrates this problem: https://codesandbox.io/s/affectionate-mountain-c6l...
61eef8768eebc190537081.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2022-01-25
@Darijj

In vue 3, the extends and mixins options still work. It's not clear what you are trying to do.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question