[Vuejs]-[Vue][ElementUI] Can I use the variable name to create a component

0πŸ‘

βœ…

Can I use the variable name to create a component?

Yes, it’s called Dynamic Components

Learn more Dynamic Components here

You can use attribute is to create a dynamic component.

Learn more :it here

<component v-bind:is="currentTabComponent"></component>

Leave a comment