Question · Vue.js course · Module 8: Slots & Dynamic Components
Slot vs props
When is it better to use a slot instead of a prop?
Answer options
- When you need to pass a number or string
- When the parent wants to control the rendering of an HTML fragment or components
- When data changes frequently
- When a component is deeply nested
You can check the correct answer by solving this task in the CodeWorlds game.