Best method for rendering & controlling vue components programmatically #9330
Replies: 1 comment
-
Duplicate (also an old version) of: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Rendering vue components programmatically
I was wondering what is the recommended way to render, update and control a vue component programmatically (outside of
.vue
sfc files)?Requirements of the recommended rendering technique:
My knowledge on how to render a vue component programmatically & their drawbacks
using
createApp().mount()
Advantages
Drawbacks
using
render() & h()
Advantages
Drawbacks
Why the hustle??
I am using a graph diagramming framework which has the ability to customize the way of rendering graph elements. I was trying to use vue components for each graph element to get the powerful data binding and conditionals. here is a simplified version of the current code:
Beta Was this translation helpful? Give feedback.
All reactions