Question · Vue.js course · Module 8: Slots & Dynamic Components
When to use Dynamic Components
When is it best to use <component :is="..."> instead of v-if?
Answer options
- Always, because it's faster
- When you have many components and want to switch between them dynamically
- Only with KeepAlive
- Only for forms
You can check the correct answer by solving this task in the CodeWorlds game.