Skip to content

VueWikiVue.js Interview Questions

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

Try a question

🌱 Beginner

What's the difference between ref and reactive?

⚛️ Reactivity🔗 Composition API

Think about your answer first

ref works with any value type and requires .value access. reactive works only with objects, no .value needed, but can't be reassigned or destructured safely.

Did you know the answer?

0/170
What is Vue and what are its main features?
⚙️ Core🍍 Pinia
🌱 Beginner
What is the Virtual DOM and how does Vue use it?
⚙️ Core⚛️ Reactivity
🌱 Beginner
Is Vue a library or a framework? Why?
⚙️ Core🍍 Pinia⚡ Vite
🌱 Beginner
What JavaScript do you need to learn before Vue?
⚙️ Core🧰 VueUse👁️ Watchers
🌱 Beginner
How do you create a Vue project from scratch?
🔧 Tooling🍍 Pinia⚡ Vite🧪 Vitest
🌱 Beginner
What is Vite and how does it work?
🔧 Tooling⚡ Vite
🌱 Beginner
How do Vue DevTools help with debugging?
🔧 Tooling🍍 Pinia⚡ Vite
🌱 Beginner
What's the difference between v-if and v-show?
📌 Directives
🌱 Beginner
What's the purpose of :key in v-for?
📌 Directives
🌱 Beginner
Why can't you use v-if and v-for on the same element?
📌 Directives❌ Common Errors
🌱 Beginner
Why doesn't v-show work on template elements?
📌 Directives❌ Common Errors
🌱 Beginner
How does event handling work in Vue?
📌 Directives🧩 Components
🌱 Beginner
How does list rendering work with v-for?
📌 Directives
🌱 Beginner
What is conditional rendering in Vue?
📌 Directives
🌱 Beginner
How do you inject raw HTML in Vue and why is it dangerous?
📌 Directives🔒 Security
🌱 Beginner
How do you create custom directives in Vue?
📌 Directives🔄 v-model
⚡ Intermediate
What is v-model and how does it differ from .sync in Vue 2?
📌 Directives🚚 Migration🔄 v-model
⚡ Intermediate
What are event modifiers and why does order matter?
📌 Directives
⚡ Intermediate
What is v-once and v-memo? When should you use them?
📌 Directives⚡ Performance🔄 v-model
🔥 Advanced
Why does mutating props directly cause warnings?
🧩 Components❌ Common Errors🔄 v-model
🌱 Beginner
How do scoped styles, CSS Modules, and dynamic classes work in Vue?
🧩 Components🎨 Styling🌀 Teleport
🌱 Beginner
What is the difference between props and state in Vue?
🧩 Components⚛️ Reactivity🔄 v-model
🌱 Beginner
What is lifting state up and when should you do it?
🧩 Components🏗️ Architecture🍍 Pinia💉 Provide/Inject
🌱 Beginner
How does v-model work on custom components?
🧩 Components📌 Directives🔄 v-model
⚡ Intermediate
What are slots and what are they used for?
🧩 Components🎰 Slots
⚡ Intermediate
What is Provide/Inject?
🧩 Components🔗 Composition API🍍 Pinia💉 Provide/Inject
⚡ Intermediate
What are Teleport, Fragments, and Suspense?
🧩 Components⏳ Suspense🌀 Teleport
⚡ Intermediate
Why does my template ref return null?
🧩 Components❌ Common Errors👁️ Watchers
⚡ Intermediate
Why do undeclared emits fire twice?
🧩 Components❌ Common Errors
⚡ Intermediate
Why doesn't scoped CSS style child component elements?
🧩 Components❌ Common Errors🌀 Teleport
⚡ Intermediate

Released under the MIT License.