
TypeScript Friendly Vue 3
Lessons
1. Introduction to the Script Setup Syntax
2. Reactive Variables with Type Inference
3. Typing Your Callback Functions
4. Props with Compiler Macros
5. Type-Safe Emit
6. (Bonus) Vue vs React: Framework Philosophy
Introduction to the Script Setup Syntax
Version 3 of Vue promotes the Script Setup syntax, which was previously an experimental feature, and is now an officially supported one. With it, we have a simpler way to write components with the Composition API and a more elegant way of using TypeScript in our Vue apps.