A
A
Alexey Nikolaev2019-10-03 18:36:58
recursion
Alexey Nikolaev, 2019-10-03 18:36:58

How to make recursive components in Vue?

There is a Tree component, and there is a TreeNode component. By architecture, TreeNode needs to call TreeNode internally. However, I get the "template or render function not defined" error.

I tried to register the component globally, the same nonsense. The component has a name "name". Dynamic import in my case, I think, will not work, because. I need not to call component B several times in component A, but to call component B from component B, which, in fact, is recursion.

How to get around?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
taijased, 2019-10-03
@Heian

Good day. An hour ago I ran into this issue. This link helped. https://codepen.io/protic_milos/pen/WVbMjX

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question