This lesson makes it clear why the limitations of Vue 2 led to the creation of Vue 3’s Composition API, and how it solves a few problems for us. To continue watching this series, head here: https://www.vuemastery.com/courses/vue-3-essentials/setup-and-reactive-references
There are currently three limitations you may have run into when working with Vue 2:
As your components get larger readability gets difficult.
The current code reuse patterns all come with drawbacks.
Vue 2 has limited TypeScript support out of the box.
I will go into detail with the first two, so it’s apparent what problem the new API solves.