Question · Vue.js course · Module 8: Slots & Dynamic Components

Dynamic component syntax

How do you render a dynamic component in Vue?

Answer options

  • <dynamic :component="currentTab" />
  • <render :is="currentTab" />
  • <component :is="currentTab" />
  • <v-component :name="currentTab" />

You can check the correct answer by solving this task in the CodeWorlds game.