Question · Vue.js course · Module 7: Props & Events
Provide/Inject pattern
In which scenario is Provide/Inject a better choice than Props?
Answer options
- When the parent and child components are next to each other
- When data needs to be passed through multiple nesting levels without prop drilling
- When data changes very frequently
- Always, because it is faster than Props
You can check the correct answer by solving this task in the CodeWorlds game.