TypeScript (Composition API vs Class-based)?
-
What is the best choice?
-
It’s just a matter of preference from what I know. That being said, the 100% officially supported version in Vue 3 will be the composition API. And, if you understand the motto “use composition over inheritance”, you’d more than likely want the composition API too. There is also already an inheritance model given with the components themselves. I personally think composition of the feature code fits in better on top of that.
Scott