Vue · Senior · Question 33 of 75
How do you migrate a large Options API codebase to the Composition API?
- ✓Correct answer: Incrementally: both APIs work together, so extract shared logic into composables first and convert components when touched
- 2Rewrite everything in one release; mixing APIs is not allowed
- 3Migration is not possible without Nuxt
Explanation
A component can even use setup() alongside options. Start with logic currently in mixins, which benefits most from composables.