Vue 3 Composition API, script setup macros, reactivity system, and built-in components. Use when writing Vue SFCs, defineProps/defineEmits/defineModel, watchers, or using Transition/Teleport/Suspense/KeepAlive.
All-time #825Trending #3167First seen Jan 28, 2026
Vue 3 Composition API with script setup, reactivity system, and built-in components for single-file components.
Use <script setup lang="ts"> with TypeScript; leverage defineProps , defineEmits , defineModel , and other macros for type-safe component APIs Core reactivity includes ref , shallowRef , computed , watch , watchEffect , and lifecycle hooks; prefer shallowRef when deep reactivity isn't needed Built-in components cover Transition , Teleport , Suspense , KeepAlive , and directives like v-memo for advanced patterns Always use Composition API over Options API; avoid reactive props destructuring to maintain reactivity