Vue Roadmap

Vue is a framework for building web interfaces from components, known for approachable templates, a precise reactivity system and an official set of tools for routing, state, testing and server rendering. Product companies, agencies and many teams that value a gentle learning curve use it, and Vue roles expect you to build features quickly and explain how reactivity works underneath.

This roadmap covers Vue 3 from your first single-file component to the topics senior interviews explore: template syntax and directives, the Composition API, component design, Vue Router and Pinia, data fetching and forms, styling, testing, performance and server rendering with Nuxt. Each topic explains the idea, shows a short example and ends with an exercise. Core topics are expected of every Vue developer, recommended ones appear in most jobs, and optional ones can wait.

By the end you will be able to build, test and ship a production-quality Vue app and talk through your decisions in an interview. Practise in coding practice and track your progress in progress page.

Level
Beginner to advanced
Time
10–14 weeks at about 8 hours a week, less if you already know another component framework
Scope
49 topics in 9 stages
Before you start
Modern JavaScript Roadmap: functions, objects, arrays and their methods, modules, promises and async/await; Basic HTML Roadmap and CSS Roadmap: semantic elements, forms, selectors and Flexbox; Comfort with npm, the terminal and Git and GitHub Roadmap; Some TypeScript Roadmap helps but you can learn it alongside Vue

What you will be able to do

  • Build multi-page Vue 3 apps with single-file components, the Composition API, Vue Router and Pinia.
  • Explain how Vue reactivity tracks dependencies and when components re-render.
  • Design reusable components with props, events, v-model, slots and provide and inject.
  • Fetch and cache server data, handle loading and errors, and build validated forms.
  • Test components, stores and user journeys with Vitest, Vue Testing Library and Playwright.
  • Optimise load and render performance and ship server-rendered or static sites with Nuxt.

The roadmap at a glance

  1. Stage 1Foundations: Your First Vue AppBeginner · 1 week · 6 topics
  2. Stage 2Template Syntax and DirectivesBeginner · 1–2 weeks · 6 topics
  3. Stage 3Reactivity and the Composition APIBeginner · 1–2 weeks · 6 topics
  4. Stage 4Components in DepthIntermediate · 2 weeks · 9 topics
  5. Stage 5Routing and State ManagementIntermediate · 1–2 weeks · 4 topics
  6. Stage 6Data Fetching and FormsIntermediate · 1–2 weeks · 4 topics
  7. Stage 7Styling and UI LibrariesIntermediate · 1 week · 3 topics
  8. Stage 8Testing and DebuggingIntermediate · 1–2 weeks · 4 topics
  9. Stage 9Performance, SSR and the Wider EcosystemAdvanced · 2–3 weeks · 7 topics

Stage 1 Foundations: Your First Vue App

Beginner1 week6 topics

Goal. Create a Vue 3 project, understand single-file components and render data in a template.

What Vue Is and How It Works Core

Vue is a JavaScript framework for building user interfaces from components. You write templates that describe what the page should show for the current state, and Vue's reactivity system tracks which state each part of the page reads. When that state changes, Vue re-renders only the affected components and patches the DOM.

Vue calls itself progressive: you can drop it into one widget on a server-rendered page, or build a whole single-page app with routing, state management and server rendering. Templates are compiled ahead of time into render functions, and the compiler marks static parts so updates skip them.

Vue 2 reached end of life at the end of 2023, so learn Vue 3. Older tutorials that use new Vue({...}), filters or Vuex describe the previous generation.

Practice. Explain in a short paragraph what happens between changing a variable and the page updating in a Vue app.

create-vue and Project Setup Core

Start new projects with create-vue, the official scaffolding tool. It builds on Vite and asks whether you want TypeScript, Vue Router, Pinia, Vitest, an end-to-end tool, ESLint and Prettier.

npm create vue@latest my-app
cd my-app
npm install
npm run dev

Vite gives a fast dev server with hot module replacement and an optimised production build. The older Vue CLI, based on webpack, is in maintenance mode and should not be used for new work.

Install the official Vue extension for VS Code (formerly called Volar) for template type checking and autocompletion, and the Vue DevTools browser extension for inspecting components and state.

Practice. Scaffold a project with TypeScript, Router and Pinia selected, and trace how main.ts mounts App.vue.

Single File Components Core

Single File Components, .vue files, keep a component's template, logic and styles together in one file.

<script setup lang="ts">
import { ref } from 'vue';
const count = ref(0);
</script>

<template>
  <button @click="count++">Clicked {{ count }} times</button>
</template>

<style scoped>
button { font-weight: 600; }
</style>

<script setup> is the recommended syntax: top-level variables and imports are available in the template directly, and there is less boilerplate. scoped styles apply only to this component, using generated attributes. A build step compiles the file into a JavaScript module, so SFCs need Vite or another bundler.

Practice. Build a ProfileCard.vue with a name, avatar and a scoped style, and render it twice from App.vue.

Templates Core

Vue templates are HTML extended with Vue syntax. Text interpolation uses double curly braces, {{ user.name }}, and accepts any single JavaScript expression, such as a ternary or a method call, but not statements.

Values are HTML-escaped, which protects against cross-site scripting. A few built-in directives control raw output and compilation:

  • v-text sets an element's text content, like interpolation for the whole element.
  • v-html inserts raw HTML. Use it only with trusted or sanitised content, because it bypasses escaping.
  • v-once renders an element once and then treats it as static.
  • v-pre skips compilation for an element, so mustache syntax is shown literally.
  • v-cloak hides uncompiled templates until the app mounts, only relevant when Vue runs in the browser without a build step.

Practice. Render a user bio with interpolation, then show the same bio as HTML with v-html and explain the risk.

API Styles: Options API and Composition API Core

Vue offers two API styles for writing component logic.

The Options API groups code by option type: data, computed, methods, watch and lifecycle hooks, with this pointing at the component instance. It is easy to start with and is what most Vue 2 code uses.

The Composition API uses imported functions such as ref, computed and onMounted inside <script setup>. Code is grouped by feature instead of by option, logic can be extracted into reusable functions called composables, and TypeScript inference works far better.

Both are fully supported in Vue 3 and use the same reactivity system. For new projects, the Composition API with <script setup> is the common default. Learn to read the Options API too, because many existing codebases and libraries use it.

Practice. Write the same counter component in both API styles and list the differences you notice.

App Configurations Recommended

createApp returns an application instance where you register app-wide settings before calling mount.

const app = createApp(App);
app.use(router).use(createPinia());
app.config.errorHandler = (err, instance, info) => {
  reportToMonitoring(err, info);
};
app.config.warnHandler = (msg) => console.debug(msg);
app.config.globalProperties.$formatDate = formatDate;
app.mount('#app');

The error / warn handler options catch uncaught errors from components, watchers and hooks, and route development warnings, so they are the place to connect error monitoring. Global properties add values reachable as this.$formatDate in Options API components; in the Composition API, prefer importing a function or using provide and inject, because globals are hard to type and to find.

app.config.performance enables timing marks in browser performance tools.

Practice. Add a global error handler that logs component name and error info, and trigger it with a failing click handler.

Stage 2 Template Syntax and Directives

Beginner1–2 weeks6 topics

Goal. Bind attributes, render conditionally and in lists, handle events and build forms with two-way binding.

Directives and v-bind Core

Directives are special attributes starting with v- that apply reactive behaviour to an element. Many take an argument after a colon and modifiers after dots: v-on:submit.prevent.

v-bind connects an attribute or prop to an expression. The shorthand is a colon.

<img :src="user.avatar" :alt="user.name" />
<button :disabled="isSaving">Save</button>
<div :class="{ active: isActive, error: hasError }" />
<div :style="{ color: textColor, fontSize: size + 'px' }" />
<input v-bind="inputAttrs" />

Class and style bindings accept objects and arrays and are merged with static class and style attributes. Binding an object without an argument spreads all its keys as attributes. Since Vue 3.4, :id with no value is shorthand for :id="id" when the variable has the same name.

Practice. Build a button component whose colour, size and disabled state are all driven by bound values.

Conditional Rendering Core

Conditional rendering uses v-if, v-else-if and v-else on sibling elements, or v-show.

<p v-if="status === 'loading'">Loading...</p>
<p v-else-if="status === 'error'">Something went wrong.</p>
<UserList v-else :users="users" />

<aside v-show="sidebarOpen">...</aside>

v-if creates and destroys the element and its components, so their state resets and their lifecycle hooks run. v-show always renders the element and toggles CSS display. Use v-show for things toggled often, such as tabs and dropdowns, and v-if when the condition rarely changes or the content is expensive.

Use a <template> wrapper to apply v-if to several elements without adding a DOM node. Do not put v-if and v-for on the same element; in Vue 3 v-if runs first and cannot see the loop variable.

Practice. Build a panel that shows loading, error, empty and data states using one v-if chain.

Rendering Lists Core

Rendering lists uses v-for over arrays, objects, numeric ranges or any iterable.

<li v-for="item in items" :key="item.id">{{ item.name }}</li>
<li v-for="(value, key, index) in settings" :key="key">{{ key }}: {{ value }}</li>
<span v-for="n in 5" :key="n">{{ n }}</span>

Always provide a stable, unique key. Vue uses keys to match elements between renders; without them, or with array indexes, reordering or deleting items reuses the wrong DOM and component state, so an input may keep the wrong value.

To filter or sort, use a computed property and loop over that, rather than combining v-if with v-for. Mutating methods on reactive arrays, such as push and splice, trigger updates, and so does replacing the array.

Practice. Render a sortable, filterable product table with computed properties and stable keys.

Events Handling Core

Binding events uses v-on, shortened to @, and Vue accepts two kinds of inline / method handlers. The handler can be an inline handler, a short statement, or a method handler, a reference to a function.

<button @click="count++">Add</button>                 <!-- inline -->
<button @click="remove(item.id)">Delete</button>       <!-- inline call -->
<form @submit="onSubmit">...</form>                    <!-- method -->
<input @input="(e) => (query = e.target.value)" />

A method handler receives the native DOM event. With an inline call, pass $event explicitly if you need the event as well as your own arguments.

Components use the same syntax to listen to custom events emitted by children, which is covered in the components stage. Keep handlers short in the template and move logic into functions, so templates stay readable and testable.

Practice. Build a quantity picker with increment, decrement and reset buttons using both inline and method handlers.

Event, Key and Mouse Button Modifiers Recommended

Modifiers are dot-suffixes that handle common event chores in the template.

  • Event modifiers: .prevent calls preventDefault, .stop stops propagation, .self fires only when the target is the element itself, .once removes the listener after one call, .capture and .passive control listener options.
  • Key modifiers filter keyboard events: @keyup.enter, .esc, .tab, .space, arrow keys, and system keys .ctrl, .alt, .shift, .meta. .exact requires that no other system keys are held.
  • Mouse button modifiers: .left, .right and .middle.
<form @submit.prevent="save">...</form>
<input @keyup.enter="search" @keydown.esc="clear" />
<div @click.right.prevent="openMenu" />
<button @click.ctrl.exact="selectMany">Select</button>

Practice. Build a search box that searches on Enter, clears on Escape and opens a custom menu on right-click.

Forms and v-model Core

Input bindings with v-model keep a form control and a piece of state in sync in both directions. It picks the right property and event for each element.

<input v-model="name" />
<textarea v-model="bio" />
<input type="checkbox" v-model="agreed" />
<input type="checkbox" value="vue" v-model="skills" />   <!-- array -->
<input type="radio" value="pro" v-model="plan" />
<select v-model="country"><option value="uk">UK</option></select>

Modifiers adjust the value: .lazy syncs on change instead of every keystroke, .number casts to a number, .trim removes surrounding whitespace.

v-model is shorthand for binding a value and listening for an update event, which is why it also works on components, as you will see later. For forms handling at scale, with validation and error messages, add a library; that comes in the forms stage.

Practice. Build a sign-up form with text, checkbox group, radio and select fields, and display the bound object live.

Stage 3 Reactivity and the Composition API

Beginner1–2 weeks6 topics

Goal. Manage component state with refs and reactive objects, derive values, react to changes and reuse logic in composables.

Composition API: ref and reactive Core

The Composition API is built on reactive state. ref() wraps any value in an object with a .value property; Vue tracks reads and writes of .value. In templates, refs are unwrapped automatically, so you write count, not count.value.

import { ref, reactive } from 'vue';
const count = ref(0);
const form = reactive({ email: '', remember: false });
count.value++;
form.email = 'a@b.co';

reactive() makes an object deeply reactive through a JavaScript Proxy. It cannot hold primitives, and destructuring it or replacing the whole object breaks reactivity. For that reason the official guidance is to use ref as the default.

Under the hood, Vue records which effects read which properties, then reruns only those effects when a property changes. shallowRef and markRaw opt large objects out of deep tracking.

Practice. Destructure a reactive object, show that updates stop rendering, then fix it with toRefs or refs.

Computed Properties Core

Computed properties derive a value from other reactive state and cache the result until a dependency changes.

const items = ref<CartItem[]>([]);
const total = computed(() =>
  items.value.reduce((sum, i) => sum + i.price * i.qty, 0)
);
const isEmpty = computed(() => items.value.length === 0);

Use a computed property whenever a value can be calculated from state, rather than storing a second copy and keeping it in sync. A method called in the template recalculates on every render; a computed property recalculates only when its inputs change.

Getters must be pure: no requests, no mutations. A computed property can have a setter for two-way patterns, such as a full name that splits into first and last names, but most should be read-only.

Practice. Build a cart with computed subtotal, tax, discount and total, and verify each recalculates only when needed.

Watchers Core

Watchers run side effects when reactive state changes: fetching data, saving to storage or calling a non-Vue library.

watch(userId, async (id, oldId, onCleanup) => {
  const controller = new AbortController();
  onCleanup(() => controller.abort());
  user.value = await fetchUser(id, controller.signal);
}, { immediate: true });

watchEffect(() => localStorage.setItem('theme', theme.value));

watch takes explicit sources and gives old and new values; options include immediate, deep and once. watchEffect runs at once and tracks whatever it reads. Clean-up protects against race conditions when a slower old request finishes after a newer one.

Do not use watchers to derive state; that is a job for computed properties. Watchers created in setup stop automatically when the component unmounts.

Practice. Write a search that watches a query, debounces it, aborts stale requests and shows results.

Lifecycle Hooks Core

Lifecycle hooks let you run code at moments in a component's life. In the Composition API they are functions called during setup.

  • onBeforeMount and onMounted: the DOM exists after mounting, so measure elements or start third-party widgets there.
  • onBeforeUpdate and onUpdated: around re-renders; rarely needed.
  • onBeforeUnmount and onUnmounted: remove listeners, timers and subscriptions.
  • onErrorCaptured: catch errors from descendants.
  • onActivated and onDeactivated: for components cached with KeepAlive.
onMounted(() => window.addEventListener('resize', onResize));
onUnmounted(() => window.removeEventListener('resize', onResize));

In the Options API the names are mounted, unmounted and so on. Code at the top level of <script setup> already runs before mounting, so there is no need for a created hook.

Practice. Build a component that starts a timer on mount and logs proof that it stops on unmount.

Options API Recommended

In the Options API, a component is an object of options. You will meet it in existing projects, Vue 2 code being migrated, and many libraries.

export default {
  props: { initial: Number },
  data() { return { count: this.initial ?? 0 }; },
  computed: { double() { return this.count * 2; } },
  watch: { count(n) { console.log('now', n); } },
  methods: { inc() { this.count++; } },
  mounted() { console.log('ready'); },
};

data must be a function so each instance gets its own state. Everything is reached through this, so arrow functions in options lose the instance. Mixins were the old way to share logic; they cause name clashes and unclear origins, and composables replace them.

You can mix the styles by calling a setup() function inside an Options API component.

Practice. Convert an Options API component with a mixin into a Composition API component with a composable.

Composables and VueUse Recommended

A composable is a function that uses Composition API features to package stateful logic for reuse. By convention its name starts with use.

export function useMouse() {
  const x = ref(0), y = ref(0);
  const update = (e: MouseEvent) => { x.value = e.pageX; y.value = e.pageY; };
  onMounted(() => window.addEventListener('mousemove', update));
  onUnmounted(() => window.removeEventListener('mousemove', update));
  return { x, y };
}

Each call creates fresh state, unless the composable deliberately keeps state outside the function. Return refs so callers can destructure without losing reactivity.

VueUse is a large collection of ready-made composables: useLocalStorage, useDebounceFn, useIntersectionObserver, useDark, useFetch and many more. Check it before writing your own browser helpers.

Practice. Write a useLocalStorage composable, then replace it with VueUse and compare the two.

Stage 4 Components in Depth

Intermediate2 weeks9 topics

Goal. Design reusable components with props, events, slots and dependency injection, and use the built-in components.

Components and Component Registration Core

Components are reusable pieces of UI with their own template, state and logic. Pages are trees of components.

Component registration decides where a component can be used. With <script setup>, importing a component registers it locally, which is the recommended approach: dependencies are explicit and unused components can be removed by the bundler.

<script setup>
import BaseButton from './BaseButton.vue';
</script>
<template><BaseButton>Save</BaseButton></template>

Global registration, app.component('BaseButton', BaseButton), makes a component available everywhere, which is convenient for design-system basics but hides dependencies and prevents tree shaking. Use PascalCase names in SFC templates; in in-DOM HTML templates you must use kebab-case, such as <base-button>, because HTML is case-insensitive.

Practice. Split a large page component into a header, list and list-item component and register them locally.

Props Core

Props pass data from a parent to a child. With <script setup> you declare them with defineProps, ideally with TypeScript types.

<script setup lang="ts">
const props = withDefaults(defineProps<{
  title: string;
  count?: number;
  tags?: string[];
}>(), { count: 0, tags: () => [] });
</script>

Since Vue 3.5 you can destructure props directly, const { title, count = 0 } = defineProps<...>(), and they stay reactive.

Data flows one way. A child must not mutate a prop; Vue warns if it does. If the child needs a local, editable copy, initialise a ref from the prop; if the value needs transforming, use a computed property. Mutating properties inside an object prop is technically possible but makes data flow hard to follow, so emit an event instead.

Practice. Build a typed Badge component with required, optional and defaulted props, and try mutating one to see the warning.

Events and Component v-model Core

Children talk to parents by emitting events. Declare them with defineEmits so they are documented and typed.

<script setup lang="ts">
const emit = defineEmits<{ select: [id: string]; close: [] }>();
</script>
<template><li @click="emit('select', item.id)">...</li></template>

<!-- parent -->
<ItemRow @select="openItem" @close="hide" />

v-model on a component is shorthand for a modelValue prop plus an update:modelValue event. Since Vue 3.4, defineModel() sets both up and returns a ref you can write to.

<script setup>
const value = defineModel<string>();          // v-model
const page = defineModel<number>('page');     // v-model:page
</script>

Component events do not bubble; only the direct parent hears them.

Practice. Build a custom RatingInput that works with v-model using defineModel.

Attribute Inheritance Recommended

Attributes and listeners passed to a component that are not declared as props or emits are called fallthrough attributes. Vue adds them to the component's root element automatically. That is how class, style, id and @click on a component end up on its outer element.

<!-- parent -->
<BaseInput class="wide" placeholder="Email" @focus="track" />

If the root element is a wrapper but the attributes belong on an inner <input>, turn off automatic inheritance and bind them yourself:

<script setup>
defineOptions({ inheritAttrs: false });
</script>
<template>
  <label class="field"><input v-bind="$attrs" /></label>
</template>

useAttrs() gives the same object in script. Components with several root nodes must bind $attrs explicitly, or Vue warns.

Practice. Build a BaseInput wrapper that passes all native input attributes to the inner input.

Slots Core

Slots let a parent pass template content into a child, which is how you build layouts, cards, modals and lists that others can customise.

<!-- Card.vue -->
<div class="card">
  <header><slot name="header">Default title</slot></header>
  <slot />
  <footer v-if="$slots.footer"><slot name="footer" /></footer>
</div>

<!-- parent -->
<Card>
  <template #header>Settings</template>
  <p>Body content</p>
</Card>

v-slot, shortened to #, selects a named slot. Scoped slots pass data back up from the child, so the parent controls rendering of each item:

<DataList :items="users" v-slot="{ item }">
  <strong>{{ item.name }}</strong>
</DataList>

Practice. Build a DataTable with a scoped slot per cell so parents can customise how each column renders.

Provide / Inject Recommended

Provide / inject passes data from an ancestor to any descendant without threading props through every level, which avoids prop drilling.

// ancestor
import { provide, ref } from 'vue';
const theme = ref('light');
provide(ThemeKey, { theme, toggle: () => (theme.value = theme.value === 'light' ? 'dark' : 'light') });

// any descendant
const { theme, toggle } = inject(ThemeKey)!;

Provide refs, not plain values, if descendants need to see changes. Provide functions for updates, so state is changed in one place. Use an InjectionKey symbol for type safety and to avoid name clashes, and give inject a default for optional dependencies.

Provide / inject suits component libraries and local subtrees, such as a form and its fields. For app-wide shared state, Pinia is usually clearer.

Practice. Build a tabs component where Tab children register with the parent Tabs through provide and inject.

Built-in Components: Teleport, Async and KeepAlive Recommended

Vue ships several components that solve awkward rendering problems.

  • Teleport components render their content elsewhere in the DOM, typically body, while staying logically inside the component. Use them for modals, toasts and tooltips that must escape overflow: hidden or stacking contexts.
  • Async components load their code only when first rendered, which splits large components out of the main bundle.
  • KeepAlive caches inactive components, so switching tabs keeps their state.
  • Suspense shows fallback content while async setup completes; it is still marked experimental.
<Teleport to="body"><Modal v-if="open" @close="open = false" /></Teleport>

const Chart = defineAsyncComponent(() => import('./Chart.vue'));

Practice. Build a modal rendered through Teleport and a heavy chart loaded as an async component.

Transition and Transition Group Optional

<Transition> animates a single element or component as it enters or leaves, triggered by v-if, v-show or a changing key. Vue adds classes at each phase, and you write the CSS.

<Transition name="fade"><p v-if="show">Saved</p></Transition>

.fade-enter-active, .fade-leave-active { transition: opacity 0.2s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

mode="out-in" waits for the old element to leave before the new one enters. JavaScript hooks such as @enter integrate animation libraries.

<TransitionGroup> animates items in a v-for list as they are added, removed or moved; the -move class animates reordering. Respect the user's reduced-motion setting by disabling transitions under prefers-reduced-motion.

Practice. Animate a to-do list so new items fade in, removed items slide out and reordering animates.

Custom Directives and Plugins Optional

Custom directives give reusable low-level DOM behaviour, such as focusing an input or detecting clicks outside an element. In <script setup>, any variable named vSomething can be used as v-something.

const vFocus = { mounted: (el: HTMLElement) => el.focus() };
// <input v-focus />

Directive hooks mirror component lifecycle hooks and receive the element and a binding with value, argument and modifiers. Prefer components or composables when the behaviour involves state or markup.

Plugins add app-level features. A plugin is an object with an install(app, options) method that can register components and directives, provide values or add global properties. Vue Router and Pinia are plugins.

export default { install(app, opts) { app.provide(ToastKey, createToast(opts)); } };

Practice. Write a v-click-outside directive and a small toast plugin installed with app.use.

Stage 5 Routing and State Management

Intermediate1–2 weeks4 topics

Goal. Build multi-page apps with Vue Router and share state across them with Pinia.

Vue Router Core

Vue Router is the official routing library. It maps URLs to components and keeps the page in sync with the address bar without full reloads.

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', component: Home },
    { path: '/users/:id', component: UserPage, props: true },
    { path: '/settings', component: () => import('./Settings.vue') },
    { path: '/:pathMatch(.*)*', component: NotFound },
  ],
});

<RouterView> renders the matched component and <RouterLink> creates navigation links. Nested routes render child views inside a parent layout. In script, useRoute() reads params and query, and useRouter() navigates.

Use createWebHistory for clean URLs, which needs the server to send index.html for unknown paths. Lazy-load route components with dynamic imports so each page is its own bundle.

Practice. Build a small app with a list page, a detail page with an :id param, nested tabs and a 404 page.

Routing: Guards and Navigation Core

Navigation guards run code before or after a route changes, for authentication, unsaved-changes prompts and analytics.

router.beforeEach((to) => {
  const auth = useAuthStore();
  if (to.meta.requiresAuth && !auth.isLoggedIn) {
    return { path: '/login', query: { redirect: to.fullPath } };
  }
});

Return false to cancel, a route to redirect, or nothing to continue. Guards can also be per route, beforeEnter, or in components, onBeforeRouteLeave. Route meta fields carry flags such as requiresAuth or a page title.

Remember that client-side guards are a user experience feature, not security. Anything sensitive must also be protected by the server API. Keep state that belongs in the URL, such as filters and the current page, in the query string so links can be shared.

Practice. Protect a dashboard route with a login guard that redirects back after sign-in, and warn on unsaved form changes.

State Management Core

State management is about where shared data lives. Start simple:

  • Local state inside a component, with ref.
  • Lift it to a common parent and pass props down when two siblings need it.
  • Provide and inject for a subtree.
  • A shared store for app-wide client state, such as the signed-in user, cart or preferences.
  • A server-state library for data fetched from APIs, covered in the next stage.

A plain reactive object exported from a module already works as a tiny global store. A real store library adds DevTools integration, server-rendering safety, plugins and conventions.

Vuex was the official store for Vue 2 and is now in maintenance mode. Pinia is the recommended store for Vue 3. Do not put everything in the store; most state is local.

Practice. List every piece of state in an app you know and decide for each whether it is local, shared, URL or server state.

Pinia Core

Pinia is Vue's official store library. A store has state, getters and actions, and can be written in a setup style that mirrors the Composition API.

export const useCartStore = defineStore('cart', () => {
  const items = ref<CartItem[]>([]);
  const total = computed(() => items.value.reduce((s, i) => s + i.price, 0));
  function add(item: CartItem) { items.value.push(item); }
  return { items, total, add };
});

// in a component
const cart = useCartStore();
const { items, total } = storeToRefs(cart);

There are no mutations as in Vuex; actions are ordinary functions and can be async. Stores are created lazily on first use. Use storeToRefs when destructuring, or reactivity is lost. Pinia integrates with DevTools for time-travel inspection and supports plugins, for example to persist state to local storage.

Practice. Build a cart store used by a product list, a header badge and a checkout page.

Stage 6 Data Fetching and Forms

Intermediate1–2 weeks4 topics

Goal. Call APIs with proper loading, error and caching behaviour, and build validated forms.

API Calls with Fetch and Axios Core

For API calls you can use the browser's Fetch API or the Axios library. Fetch is built in and needs no dependency. Axios adds interceptors, automatic JSON handling, request cancellation and errors thrown for non-2xx responses.

const users = ref<User[]>([]);
const loading = ref(false);
const error = ref<string | null>(null);

async function load() {
  loading.value = true; error.value = null;
  try {
    const res = await fetch('/api/users');
    if (!res.ok) throw new Error(`HTTP ${res.status}`);
    users.value = await res.json();
  } catch (e) { error.value = (e as Error).message; }
  finally { loading.value = false; }
}
onMounted(load);

Fetch does not reject on HTTP errors, so check res.ok. Wrap this pattern in a composable so every component does not repeat it, and handle aborting for requests that may be superseded.

Practice. Write a useFetch composable that returns data, error and loading refs and aborts stale requests.

TanStack Query Recommended

TanStack Query, with its Vue adapter, manages server state: data that lives on a server and is cached on the client. It handles caching, deduplication, background refetching, retries, pagination and invalidation for you.

const { data, isPending, error } = useQuery({
  queryKey: ['user', userId],
  queryFn: () => fetchUser(userId.value),
});

const qc = useQueryClient();
const { mutate } = useMutation({
  mutationFn: updateUser,
  onSuccess: () => qc.invalidateQueries({ queryKey: ['user'] }),
});

Query keys can include refs, so changing userId refetches automatically. Keeping server data here, rather than in Pinia, removes most hand-written loading flags and stale-data bugs. Pinia then holds only true client state.

Practice. Replace hand-written fetching in a list and detail page with TanStack Query, including a mutation with invalidation.

Apollo and GraphQL Optional

If your back end exposes GraphQL Roadmap, Apollo Client with the Vue Apollo integration provides composables such as useQuery and useMutation and a normalised cache that updates every component showing the same object.

const { result, loading } = useQuery(gql`
  query Post($id: ID!) { post(id: $id) { id title author { name } } }
`, () => ({ id: postId.value }));

Apollo is a large dependency with its own caching rules. For simple GraphQL needs, a lightweight client, or TanStack Query with a plain request function, may be enough. Pair any GraphQL client with a code generator so query results are typed from the schema.

Practice. Fetch and display a list from a public GraphQL API with Vue Apollo and typed results.

Forms Handling and Validation Core

Forms handling covers values, validation, error messages, touched state and submission. For small forms, refs plus computed validity are enough. For larger ones, use a library.

  • VeeValidate is the most popular choice: composables such as useForm and useField, and schema validation with Zod or Yup.
  • Vuelidate is a model-based validation library where rules are declared next to state.
  • FormKit generates whole forms, including inputs, labels, validation and accessibility, from components or a schema.
const { handleSubmit, errors, defineField } = useForm({
  validationSchema: toTypedSchema(z.object({ email: z.string().email() })),
});
const [email, emailAttrs] = defineField('email');
const onSubmit = handleSubmit((values) => api.signup(values));

Always validate on the server too; client validation is for user experience.

Practice. Build a sign-up form with VeeValidate and a Zod schema, showing errors only after a field is touched.

Stage 7 Styling and UI Libraries

Intermediate1 week3 topics

Goal. Style components consistently and choose a component library that suits the project.

Styling Vue Components Core

SFCs support several styling approaches.

  • <style scoped> limits CSS to the component. Use the :deep() selector to reach into child components and :slotted() for slot content.
  • <style module> gives CSS Modules, exposed as $style in the template.
  • v-bind() inside CSS links a CSS value to component state: color: v-bind(textColor);.
  • Pre-processors such as Sass work with lang="scss" once installed.

Keep global styles, resets and design tokens as CSS custom properties in one global file, and component layout in scoped styles. Know the CSS Roadmap well; Vue does not change how the cascade, specificity or layout work.

Practice. Style a card component with scoped styles, a theme colour bound with v-bind() in CSS, and a deep selector.

Tailwind CSS Recommended

Tailwind CSS is a utility-first framework: you compose styles from small classes in the template instead of writing CSS files. It pairs well with SFCs because the markup and styles sit together.

<button class="rounded-md bg-blue-600 px-4 py-2 text-white hover:bg-blue-700
               disabled:opacity-50" :disabled="saving">
  Save
</button>

The build scans your files and ships only the classes you use. Bind classes conditionally with Vue's object syntax, but write full class names, not concatenated fragments, or the scanner cannot find them.

When the same set of classes repeats, extract a component rather than a CSS class. Headless libraries such as Headless UI, Radix Vue or Reka UI add accessible behaviour that you style with Tailwind.

Practice. Rebuild a styled form with Tailwind utilities and extract the repeated input styling into a component.

Component Libraries: Vuetify, Element and Quasar Recommended

A component library gives ready-made, consistent widgets such as tables, dialogs, date pickers and menus.

  • Vuetify implements Material Design with a large set of components and a strong grid and theming system.
  • Element UI was a popular desktop-oriented library for Vue 2; its Vue 3 successor is called Element Plus. Use Element Plus for new projects.
  • Quasar is a full framework with components plus build targets for single-page apps, server rendering, PWAs, mobile and desktop apps.
  • PrimeVue and Naive UI are other widely used options.

Choose by design fit, accessibility, TypeScript support, bundle size and whether it is actively maintained for Vue 3. Import components individually, or use the library's auto-import plugin, so unused parts are tree-shaken.

Practice. Build the same settings page with two different component libraries and compare bundle size and effort.

Stage 8 Testing and Debugging

Intermediate1–2 weeks4 topics

Goal. Debug components with DevTools and write unit, component and end-to-end tests.

Debugging Core

Debugging Vue apps starts with Vue DevTools, available as a browser extension and as a Vite plugin. It shows the component tree with props, state and computed values, lets you edit them live, and inspects Pinia stores, router state, emitted events and a performance timeline.

Other habits that help:

  • Read Vue's development warnings in the console; they point at missing keys, prop mutations and failed resolution.
  • Use debugger or browser breakpoints in <script setup>; source maps map them back to the SFC.
  • onRenderTracked and onRenderTriggered hooks reveal which dependency caused a re-render.
  • Log with toRaw(value) to see a plain object instead of a Proxy.

Production builds strip warnings and DevTools support by default, so reproduce bugs in development.

Practice. Use DevTools to find which state change causes an unexpected re-render, and fix it.

Vitest Core

Vitest is the standard test runner for Vite-based projects. It reuses your Vite configuration, so SFCs, TypeScript and aliases just work, and its API is compatible with Jest.

import { describe, it, expect } from 'vitest';
import { formatPrice } from './format';

describe('formatPrice', () => {
  it('formats pence as pounds', () => {
    expect(formatPrice(1999)).toBe('£19.99');
  });
});

Use it for unit tests of composables, stores and utilities, and with a DOM environment such as jsdom or happy-dom for component tests. For Pinia, create a fresh store per test with setActivePinia(createPinia()) or createTestingPinia. Mock network calls with MSW or vi.fn rather than hitting real APIs.

Practice. Write Vitest tests for a composable and a Pinia store, including an async action.

Vue Testing Library Recommended

Vue Test Utils is the official low-level library for mounting components in tests. Vue Testing Library builds on it and encourages testing the way users interact: find elements by role, label or text, fire events, and assert what appears.

import { render, screen } from '@testing-library/vue';
import userEvent from '@testing-library/user-event';

it('adds an item', async () => {
  render(TodoApp);
  await userEvent.type(screen.getByLabelText('New task'), 'Buy milk');
  await userEvent.click(screen.getByRole('button', { name: 'Add' }));
  expect(screen.getByText('Buy milk')).toBeTruthy();
});

Avoid asserting on internal state or component instances; tests that follow behaviour survive refactoring. Role queries also nudge you towards accessible markup.

Practice. Test a login form for successful submit, validation errors and a disabled button while saving.

End-to-End Testing with Cypress and Playwright Recommended

End-to-end tests run the real app in a real browser and click through critical journeys: sign-up, checkout, search.

  • Playwright runs Chromium, Firefox and WebKit, in parallel, with auto-waiting, tracing and a code generator. create-vue can scaffold it.
  • Cypress runs tests inside the browser with an interactive runner and time-travel debugging, and also supports component testing.
test('user can add to cart', async ({ page }) => {
  await page.goto('/products/1');
  await page.getByRole('button', { name: 'Add to cart' }).click();
  await expect(page.getByTestId('cart-count')).toHaveText('1');
});

Keep end-to-end tests few and focused on high-value paths; they are slower and flakier than component tests. Seed or mock data so runs are repeatable.

Practice. Write a Playwright test for the main journey of your project and run it in CI.

Stage 9 Performance, SSR and the Wider Ecosystem

Advanced2–3 weeks7 topics

Goal. Optimise rendering, ship server-rendered and static sites with Nuxt or VitePress, and know the mobile and TypeScript options.

Vue.js Performance Optimization Overview Recommended

Performance work has two sides: page load and update speed. Measure first with the browser's performance panel, Lighthouse and the DevTools timeline.

For load performance:

  • Lazy-load routes and heavy components with dynamic imports.
  • Check bundle contents with a visualiser and remove large dependencies.
  • Import library components individually so tree shaking works.
  • Server-render or pre-render pages that need fast first paint and SEO.

For update performance, Vue's compiler already skips static content, and fine-grained reactivity re-renders only components whose dependencies changed. Problems usually come from huge lists, deep reactivity on large data, and props that change identity on every render. The next topic covers fixes.

Practice. Profile a slow page, record the main bottleneck, and fix it with the lightest technique that works.

Optimizing Renders Recommended

Techniques for optimizing renders when profiling shows a real problem:

  • Keep props stable. Pass primitives or IDs rather than recreating objects, so children are not updated needlessly.
  • Use shallowRef or markRaw for large data that is replaced, not mutated, such as API results with thousands of rows.
  • Virtualise long lists so only visible rows are rendered, for example with a virtual scroller component or VueUse's useVirtualList.
  • v-once for content that never changes, and v-memo to skip re-rendering list items unless listed values change.
  • Cache expensive derivations in computed properties, and keep heavy work out of templates.
  • KeepAlive avoids remounting expensive tab content.
<div v-for="row in rows" :key="row.id" v-memo="[row.id === selectedId]">...</div>

Practice. Render 10,000 rows, measure, then apply virtualisation and shallowRef and measure again.

Server-side Rendering Recommended

Server-side rendering (SSR) runs your Vue components on the server to produce HTML, which the browser shows immediately. Vue then hydrates it on the client, attaching event listeners and reactivity to the existing markup.

Benefits: faster first content, better SEO and link previews. Costs: a Node server, more complex deployment and code that must run in both environments.

Rules for SSR-safe code:

  • No window or document at the top level of setup; use them in onMounted, which only runs in the browser.
  • Do not share module-level state between requests; create stores and apps per request.
  • Render the same output on server and client, or you get hydration mismatch warnings.

Vue exposes createSSRApp and renderToString, but most teams use Nuxt rather than wiring SSR by hand.

Practice. Find three pieces of code in a client app that would break under SSR and make them safe.

Nuxt.js Recommended

Nuxt is the main full-stack framework for Vue, usually just called Nuxt now. It adds file-based routing, layouts, server rendering, static generation, server API routes, auto-imports and data-fetching helpers.

// pages/posts/[id].vue
<script setup lang="ts">
const route = useRoute();
const { data: post } = await useFetch(`/api/posts/${route.params.id}`);
</script>

// server/api/posts/[id].ts
export default defineEventHandler((e) => getPost(getRouterParam(e, 'id')));

useFetch and useAsyncData fetch on the server and pass data to the client without a second request. Rendering can be chosen per route: SSR, static pre-rendering or client-only. Nitro, the server engine, deploys to Node servers, serverless platforms and edge runtimes. Nuxt modules add features such as content, images and authentication.

Practice. Build a small blog in Nuxt with a server API route, dynamic pages and one pre-rendered page.

Static Site Generators and VitePress Optional

Static site generators render every page to HTML at build time, so it can be served from a CDN with no server. They suit documentation, blogs and marketing pages.

VitePress is the Vue-powered generator built on Vite. You write Markdown, can embed Vue components in it, and get a fast single-page experience after the first load. Vue's own documentation is built with it.

docs/
  .vitepress/config.ts
  index.md
  guide/getting-started.md

Nuxt can also pre-render whole sites with nuxt generate, or mix static and server-rendered routes. Choose VitePress for documentation and content sites, and Nuxt when you need application features alongside static pages.

Practice. Create documentation for one of your projects with VitePress, including an embedded Vue demo component.

Mobile Apps with Capacitor and Quasar Optional

Vue does not have an official native renderer like React Native, but you can ship mobile apps in several ways.

  • Capacitor wraps your web app in a native iOS or Android shell and gives JavaScript access to device APIs such as the camera, files and notifications. Your Vue code stays the same.
  • Quasar can build the same codebase as a single-page app, PWA, Capacitor or Cordova mobile app and an Electron desktop app.
  • Ionic Vue provides mobile-styled components on top of Capacitor.
  • A progressive web app may be enough when you only need installation and offline support.

These approaches render with a web view, so very animation-heavy apps may feel less native than Flutter or React Native apps. Test on real, low-end devices.

Practice. Wrap one of your Vue apps with Capacitor and use the camera plugin on a phone or emulator.

TypeScript with Vue Recommended

Vue 3 is written in TypeScript and the Composition API is designed for inference. Add lang="ts" to <script setup> and most types flow automatically.

<script setup lang="ts">
const props = defineProps<{ user: User }>();
const emit = defineEmits<{ save: [user: User] }>();
const input = useTemplateRef<HTMLInputElement>('input');
const items = ref<Item[]>([]);
</script>

Type-check templates with vue-tsc --noEmit in CI, because Vite strips types without checking. Generic components are possible with <script setup lang="ts" generic="T">. Use typed injection keys for provide and inject, and typed Pinia stores, which infer from setup stores automatically.

The TypeScript Roadmap covers the language itself.

Practice. Add vue-tsc to a project and fix every template type error it reports.

Projects to build

Build these in order. Each one should end up in a public repository with a short README that explains your decisions.

  1. Recipe browserBeginner

    Build a single-page recipe list with search, category filters and a favourites toggle saved in local storage. Use computed properties for filtering, v-for with keys, and one composable for persistence.

    Templates and directives · Computed properties · Watchers · Composables

  2. Movie search with routingIntermediate

    Build a search app on a free public API with a results page and a detail page per item. Keep the query and page in the URL, debounce input, abort stale requests and show loading, empty and error states. Then move fetching to TanStack Query.

    Vue Router · API calls · TanStack Query · URL state

  3. Expense tracker with PiniaIntermediate

    Build an expense tracker with categories, monthly totals, a chart and a multi-field form validated with VeeValidate and Zod. Store expenses in a Pinia store persisted to local storage, and test the store and the form.

    Pinia · Forms handling · VeeValidate · Vitest · Vue Testing Library

  4. Kanban board component libraryAdvanced

    Build a board with draggable cards and columns, keyboard support, a teleported card editor modal and animated list changes. Extract reusable Board, Column and Card components that use slots, provide and inject and defineModel, and profile it with 1,000 cards.

    Slots · Provide / inject · Teleport · TransitionGroup · Performance

  5. Full-stack Nuxt appAdvanced

    Build a small product such as a reading list or team notes app in Nuxt with authentication, server API routes, a database and both server-rendered and pre-rendered pages. Add Playwright tests for the main journey and deploy it.

    Nuxt · Server-side rendering · Server routes · Playwright · Deployment

Interview questions

Try to answer each question out loud before you open the answer.

How does Vue reactivity work?Mid

Vue wraps state in proxies, through reactive, or in objects with a .value getter and setter, through ref. When a component renders, or a computed property or watcher runs, Vue records each reactive property read as a dependency of that effect. When a property is written, Vue looks up the effects that depend on it and schedules them to rerun, batching updates into the next tick. So only components that read changed data re-render, without manual memoisation in most cases.

What is the difference between ref and reactive?Junior

ref holds any value, including primitives, inside an object with a .value property, and templates unwrap it automatically. reactive returns a deeply reactive proxy of an object and does not work for primitives. Destructuring a reactive object or replacing it entirely breaks reactivity, while a ref can be reassigned freely. That is why the official advice is to default to ref. I use reactive occasionally for grouped form state that I never reassign.

What is the difference between computed properties and watchers?Junior

A computed property derives a value from other state, caches it and recalculates only when a dependency changes. It must be pure. A watcher runs a side effect when state changes, such as fetching data, saving to storage or calling a non-Vue API, and it gives you old and new values and a clean-up hook. If I am calculating something to display, I use computed. If I need to do something because a value changed, I use a watcher.

What is the difference between v-if and v-show?Junior

v-if adds or removes the element from the DOM, so child components are created and destroyed, their state resets and lifecycle hooks run. It is cheap when the condition is false. v-show always renders the element and toggles its CSS display, so the initial cost is paid once and toggling is cheap. I use v-show for frequently toggled UI such as tabs and dropdowns, and v-if for content that rarely changes or should not exist until needed.

Why do you need a key in v-for, and why is the index a poor key?Junior

Vue uses keys to match list items between renders so it can reuse, move or remove the right elements and component instances. With the index as key, identity follows position: after inserting, deleting or sorting, an item takes over the DOM and state of whatever was previously at that position, so inputs show wrong values or animations jump. A stable unique ID from the data avoids that. An index key is only acceptable for static lists that never change order.

How do parent and child components communicate in Vue?Junior

Parents pass data down with props, and children notify parents by emitting events, declared with defineProps and defineEmits. v-model on a component combines a prop and an update event, and defineModel makes that simple. Slots let the parent pass template content in, and scoped slots pass data back out for the parent to render. For deeper trees I use provide and inject, and for app-wide state a Pinia store. I avoid reaching into child instances with template refs except for imperative actions such as focusing.

Compare the Options API and the Composition API.Mid

The Options API organises a component by option type, such as data, methods and computed, and uses this. It is easy to read for small components. The Composition API organises code by feature using functions like ref and computed in <script setup>, which keeps related logic together, allows reuse through composables instead of mixins, and gives much better TypeScript inference. Both share the same reactivity system. I default to the Composition API for new code but can maintain Options API code comfortably.

What is a composable, and how is it better than a mixin?Mid

A composable is a function, named useSomething, that uses Composition API features to encapsulate stateful logic and returns refs and functions. Mixins merged options into the component, so it was unclear where a property came from, names could clash silently and you could not pass parameters easily. Composables are explicit: you import and call them, rename what they return, pass arguments, and TypeScript understands them. Each call gets its own state unless the composable shares it on purpose.

When would you use Pinia, and when is it unnecessary?Mid

I use Pinia for client state that many unrelated parts of the app need, such as the signed-in user, a cart or user preferences, and when I want DevTools support or SSR-safe stores. It is unnecessary for state used by one component or a small subtree, where local refs, props or provide and inject are simpler. I also keep server data out of Pinia and use a tool like TanStack Query, because caching, refetching and invalidation are a different problem from shared client state.

What is the Vue component lifecycle, and where would you fetch data?Mid

A component is set up, mounted into the DOM, updated as its reactive dependencies change, and finally unmounted. Hooks such as onMounted, onUpdated and onUnmounted run at those points. Fetching can start at the top level of <script setup> or in a watcher with immediate: true that reacts to changing params, which is better than onMounted when the component can stay mounted while the ID changes. In Nuxt, I use useFetch so data loads on the server. I always clean up listeners, timers and requests on unmount.

How does v-model work on a custom component?Mid

On a component, v-model="value" expands to a modelValue prop plus a listener for an update:modelValue event. The child displays the prop and emits the event with the new value. Named models, such as v-model:page, use a page prop and update:page event, so one component can have several. Since Vue 3.4, defineModel() declares the prop and event and returns a ref; writing to it emits the update. Modifiers like .trim are passed to the child too.

What causes hydration mismatches in a server-rendered Vue app and how do you fix them?Senior

A mismatch happens when the HTML the server rendered differs from what the client renders on its first pass. Common causes are reading window, localStorage or the current time during render, random IDs, user-specific data that only exists on the client, and invalid HTML nesting that the browser corrects. Fixes are to move browser-only work into onMounted, use useId for stable IDs, pass server data to the client instead of recomputing it, render browser-only parts inside a client-only wrapper, and fix the markup.

A large Vue page feels slow when the user types. How would you investigate?Senior

I would record a performance profile and use Vue DevTools to see which components re-render on each keystroke and why, with the render-tracking hooks if needed. Typical causes are a big list re-rendering because a parent passes a new object or inline function, deep reactivity on a huge data set, or expensive work in the template. Fixes include stable props, computed properties, shallowRef for large data, virtualising the list, v-memo on rows and debouncing the input. I would measure again after each change.

How would you structure a large Vue application?Senior

I organise by feature rather than by file type: each feature folder holds its components, composables, store and API calls, with a shared folder for design-system components and utilities. Routes lazy-load features. Server state lives in a query library, shared client state in small Pinia stores per domain, and the rest stays local. I enforce TypeScript with vue-tsc in CI, lint rules, and clear public entry points for features, and back it with component tests and a few end-to-end journeys.

When would you choose Nuxt over a plain Vite and Vue app?Mid

Nuxt fits when pages need SEO or a fast first render, when some routes can be pre-rendered, or when you want server API routes and conventions such as file-based routing and auto-imports in one framework. A plain Vite single-page app is simpler for internal dashboards, apps behind a login and embedded widgets, where SSR adds deployment and coding complexity without much benefit. I would also consider whether the team is ready to write code that runs on both server and client.

Common mistakes

  • Destructuring a reactive object or a Pinia store and losing reactivity; use refs, toRefs or storeToRefs.
  • Using a watcher to keep one piece of state in sync with another; derive it with a computed property.
  • Mutating props in a child component; emit an event or use defineModel so the parent owns the change.
  • Using the array index as the v-for key; use a stable ID from the data.
  • Putting v-if and v-for on the same element; filter with a computed property or wrap with a <template>.
  • Leaving event listeners, intervals and requests running after unmount; clean them up in onUnmounted or watcher clean-up.
  • Storing all server data in Pinia with hand-written loading flags; use a server-state library and keep stores for client state.
  • Using v-html with user-supplied content; render text with interpolation or sanitise the HTML first.

Ready-for-interview checklist

  • I can scaffold a Vue 3 project with create-vue and explain each generated file.
  • I can explain how Vue tracks dependencies and when a component re-renders.
  • I can choose between ref and reactive, and between computed properties and watchers, with reasons.
  • I can use v-if, v-show, v-for with keys, v-bind, v-on with modifiers and v-model correctly.
  • I can build components with typed props, emits, defineModel, slots and scoped slots.
  • I can write a composable and explain why composables replaced mixins.
  • I can set up Vue Router with nested routes, lazy loading and navigation guards.
  • I can build a Pinia store and decide which state belongs in it.
  • I can fetch data with loading, error and race-condition handling, and use TanStack Query.
  • I can build a validated form with VeeValidate or a similar library.
  • I can test components with Vue Testing Library and write an end-to-end test with Playwright or Cypress.
  • I can profile a slow page and apply the right render optimisation.
  • I can explain SSR, hydration and when to choose Nuxt.

Related roadmaps

  • JavaScript RoadmapLanguage core, async, the event loop, modules and the DOM.
  • TypeScript RoadmapTypes, generics, narrowing, utility types and project setup.
  • CSS RoadmapCascade, layout with flexbox and grid, responsive design, animation.
  • React RoadmapComponents, hooks, state, data fetching, performance and testing.
  • Node.js RoadmapEvent loop, modules, HTTP, streams, frameworks and deployment.
  • GraphQL RoadmapSchemas, resolvers, N+1, caching, federation and security.

FAQ

How long does it take to learn Vue?

With solid JavaScript, most people build small Vue apps within two to three weeks. Reaching the level expected for a junior or mid-level role, including routing, Pinia, forms, testing and some performance and SSR knowledge, usually takes two to three months at around eight hours a week. Building several real projects is what makes it stick.

Should I learn Vue or React?

Both are good choices and the core ideas, components, one-way data flow and reactive rendering, transfer between them. React has more job listings in many regions, while Vue is often quicker to learn thanks to its templates and official tooling. Check job adverts where you want to work. The React Roadmap covers the other side if you want both.

Should I learn the Options API or the Composition API?

Learn the Composition API with <script setup> first, because new projects and most current libraries use it and it works best with TypeScript. Then spend a few days reading Options API code, since many existing apps and older tutorials use it and you may maintain them.

Is Vue 2 still worth learning?

No, not as a first step. Vue 2 reached end of life at the end of 2023. Learn Vue 3, and learn the main differences, such as Vuex versus Pinia, filters being removed and the new v-model on components, only if you need to maintain or migrate an older app.

Do I need Nuxt to get a Vue job?

Not always, but it helps. Many Vue jobs are single-page apps built with Vite, while companies with public, SEO-sensitive sites often use Nuxt. Learn plain Vue first, then build at least one Nuxt project so you can discuss server rendering in interviews.

Practise while you learn.Solve interview problems in the browser, with hints and a timer.
CodingSQLSystem design
Next Post Previous Post
No Comment
Add Comment
comment url