Vue · Middle · Question 21 of 75
What problems of mixins do composables solve?
- ✓Correct answer: Unclear origin of properties, name collisions and implicit coupling between mixins
- 2Mixins can't use lifecycle hooks
- 3Mixins don't work with templates
Explanation
With composables, everything is explicitly imported and destructured, so you see where x came from and can rename on the fly. Mixins are not recommended in Vue 3.