Skip to content

VueWikiVue.js Interview Questions

Prepare your next Vue.js interview with real questions, detailed answers, and code examples.

VueWiki
What is the Composition API and how does it differ from the Options API?
Composition API
Beginner
What's the difference between ref and reactive?
ReactivityComposition API
Beginner
What is script setup?
Composition API
Beginner
How do you declare props with TypeScript in Vue 3?
TypeScriptComponents
Beginner
How do you emit events with TypeScript?
TypeScriptComponents
Beginner
What's the difference between v-if and v-show?
Directives
Beginner
What's the purpose of :key in v-for?
Directives
Beginner
What is a composable?
ComposablesComposition API
Beginner
What is Pinia and how does it differ from Vuex?
State Management
Beginner
How does Vuex work?
State Management
Beginner
What's the difference between watch and watchEffect?
ReactivityComposition API
Intermediate
How does v-model work on custom components?
ComponentsDirectives
Intermediate
What are slots and what are they used for?
Components
Intermediate
What is Provide/Inject?
ComponentsComposition API
Intermediate
How do you test Vue components with Vitest?
Testing
Intermediate
How would you build a composable for data fetching?
Composables
Intermediate
How would you implement debounce on a search input?
ComposablesPerformance
Intermediate
How does Vue Router work and what are navigation guards?
Vue Router
Intermediate
What are Teleport, Fragments, and Suspense?
Components
Intermediate
How does Vue 3's reactivity system work?
Reactivity
Intermediate
How would you plan a Vue 2 to Vue 3 migration?
Migration
Advanced
When would you use shallowRef / shallowReactive?
ReactivityPerformance
Advanced
How would you design a shared component library?
ComponentsArchitecture
Advanced
How would you optimize performance in a Vue app?
Performance
Advanced
How would you test a composable that fetches data?
TestingComposables
Advanced
What's the difference between computed and watch?
ReactivityComposition API
Advanced
How would you handle complex forms in Vue?
ComponentsComposables
Advanced
How would you migrate a Vuex module to Pinia?
State ManagementMigration
Advanced
How would you structure a large Vue project?
Architecture
Advanced
How would you implement lazy loading and code splitting?
PerformanceVue Router
Advanced

Released under the MIT License.