name: Vue.js Vocabulary description: >- Domain vocabulary for Vue.js framework concepts, APIs, and patterns used across the Vue.js ecosystem including core reactivity, component system, routing, state management, and build tooling. version: '1.0.0' created: '2026-05-03' modified: '2026-05-03' tags: - Component-Based - Framework - Frontend - JavaScript - Open Source concepts: - term: Single File Component (SFC) definition: >- A Vue.js file format (.vue) that encapsulates a component's template, script, and styles in a single file. SFCs enable syntax highlighting, scoped styles, TypeScript support, and compile-time optimizations through build tools like Vite. related: - Template - Script Setup - Scoped Styles - term: Composition API definition: >- A set of Vue.js APIs introduced in Vue 3 for authoring components using imported functions (ref, reactive, computed, watch, etc.) rather than declaring component options. Enables better code reuse through composables and improved TypeScript inference. related: - Options API - Composable - setup() - term: Options API definition: >- The original Vue.js API for authoring components by declaring an options object with data, computed, methods, watch, and lifecycle hooks. Still fully supported in Vue 3 and useful for learning and simple components. related: - Composition API - Component Instance - term: Reactivity definition: >- Vue.js's automatic dependency tracking system that re-renders components when their reactive state changes. Built on JavaScript Proxy, Vue's reactivity system tracks which reactive state was accessed during rendering and triggers re-renders when that state mutates. related: - ref - reactive - Computed Property - term: ref definition: >- A Vue.js reactivity primitive that wraps a value in a reactive object. Accessing and mutating the value is done through the .value property in script. In templates, refs are automatically unwrapped. Works with primitives and objects. related: - reactive - Reactivity - term: reactive definition: >- A Vue.js reactivity primitive that returns a reactive proxy of an object. Unlike ref, reactive works only with objects (not primitives) and the reactive version is directly accessible without .value. Loses reactivity if destructured. related: - ref - Reactivity - term: computed definition: >- A Vue.js function or property that derives its value from other reactive state. Computed properties cache their value and only re-compute when their reactive dependencies change, making them more efficient than methods for expensive calculations. related: - ref - watch - Reactivity - term: watch definition: >- A Vue.js imperative side-effect trigger that executes a callback when reactive state changes. Unlike computed properties, watch is used for side effects like API calls, DOM manipulation, or triggering mutations in response to state changes. related: - watchEffect - computed - term: watchEffect definition: >- A Vue.js function that immediately runs a callback and automatically re-runs it whenever any reactive dependencies accessed inside the callback change. Unlike watch, it does not require specifying the source and runs immediately. related: - watch - term: Composable definition: >- A function that uses Vue.js Composition API to encapsulate and reuse stateful logic. Composables are named with the "use" prefix (e.g., useMousePosition, useFetch) and can use any Composition API features internally. related: - Composition API - VueUse - term: setup() definition: >- The entry point for Composition API logic in a Vue component. Executed before component creation, setup() receives props and context as arguments and returns values to be exposed to the template. In SFCs,