What problem does it solve?
Vue 3 development can be complex when adopting the Composition API, script setup macros, and multiple built-in components; this skill provides structured guidance to streamline building scalable Vue SFCs.
Core Features & Use Cases
- Script Setup & Macros: defineProps, defineEmits, defineModel, defineExpose, defineSlots, and generics.
- Reactivity & Lifecycle: ref, reactive, computed, watch, watchEffect, lifecycle hooks, and common composables patterns.
- Built-in Components & Directives: Transition, Teleport, Suspense, KeepAlive, v-memo, and custom directives.
- Use Scenarios: building Vue SFCs with props, events, and reactive state; composing components with advanced patterns like defineExpose and top-level await in script setup.
Quick Start
Follow the steps to create a Vue 3 SFC using script setup and defineProps/defineEmits, then render a simple reactive component.