Vue

Intermediate · Roadmap · 55 lessons · 10 groups

Single-file components and the template syntax, then the reactivity system underneath them — refs, computed values, watchers, and how Vue tracks dependencies — then components, composables, and Vue's built-in components, followed by the ecosystem a real app needs: Vue Router, Pinia, data fetching, TypeScript, testing, performance, and server rendering with Nuxt. The JavaScript language itself is taught in javascript, the type system in typescript, and generic browser, tooling, and rendering-strategy concepts in frontend. Fifty-five lessons.

0%

Not started

Nothing saved yet. Progress is kept in this browser until you sign in.

Start the path

Vue fundamentals · 5

Templates and directives · 6

Reactivity · 6

Components · 7

Reusing logic · 5

Built-in components · 5

Routing with Vue Router · 4

State and data fetching · 6

Vue in practice · 7

Server-side Vue and Nuxt · 4

01Why Vue and the progressive frameworkThe problem Vue was built to solve, what "progressive framework" actually means in practice, and where Vue 3 sits next to React and Angular today.Beginner · 39 min02Setting up a Vue projectScaffolding a Vue 3 app with create-vue and Vite, what each generated file does, how the app boots from index.html, and the editor and devtools setup.Beginner · 9 min03Single-file componentsThe anatomy of a .vue file, why Vue colocates template, logic, and styles, how the SFC compiler turns it into JavaScript, and how scoped styles work.Beginner · 10 min04Options API vs Composition APIThe two ways to write Vue components, the same component in each, why Vue 3 added the Composition API, and how to read Options API code in older apps.Beginner · 10 min05script setup and compiler macrosWhat <script setup> compiles into, why defineProps, defineEmits, defineModel and the other define* macros need no import, and the rules that follow from that.Intermediate · 14 min01Text interpolation and attribute bindingHow a Vue template puts data into text with double curly braces and into attributes with v-bind, which expressions are allowed, and how values apply.Beginner · 12 min02Conditional rendering with v-if and v-showShowing and hiding parts of a template with v-if, v-else-if, v-else and v-show, and choosing between creating elements and toggling their display.Beginner · 5 min03List rendering with v-forRendering arrays, objects and ranges with v-for, why every list item needs a stable key, and how to filter and sort lists without mixing v-if into the loop.Beginner · 7 min04Class and style bindingsVue's object and array syntax for binding class and style, how bound classes merge with static ones, and when to reach for a class instead of an inline style.Beginner · 6 min05Event handling and modifiersListening to DOM events with v-on, method versus inline handlers, the $event variable, and the event, key and mouse modifiers that cut handler boilerplate.Beginner · 7 min06Form input bindings with v-modelTwo-way binding of native inputs, textareas, checkboxes, radios and selects with v-model, what it expands to, and the .lazy, .number and .trim modifiers.Beginner · 8 min01ref and reactiveDeclaring reactive state in Vue 3 with ref() and reactive(), why refs need .value, where Vue unwraps them for you, and how reactivity gets lost.Beginner · 9 min02Computed propertiesDeriving state with computed() in Vue 3, why results are cached by their dependencies, when to use a method instead, and writable computeds.Beginner · 14 min03Watchers with watch and watchEffectRunning side effects when reactive state changes with watch and watchEffect, plus sources, deep and immediate, flush timing, and cleanup.Intermediate · 9 min04How Vue reactivity worksHow Vue tracks dependencies with Proxies, getters, and effects, why updates are batched, and how the engine changed in Vue 3.5 and 3.6.Intermediate · 35 min05Shallow reactivity and escape hatchesWhen deep reactivity costs more than it gives, and how shallowRef, shallowReactive, triggerRef, markRaw, toRaw, readonly, and customRef opt you out.Advanced · 12 min06Lifecycle hooksRunning code when a Vue component mounts, updates, and unmounts with onMounted and friends, plus cleanup, the sync-registration rule, and SSR.Beginner · 12 min01Components and propsSplitting an app into child components, declaring props with defineProps, validation and defaults, Vue 3.5 props destructure, and one-way data flow.Beginner · 15 min02Component events and emitsHow a child talks back to its parent with custom events: declaring them with defineEmits, typed and validated payloads, and why they don't bubble.Beginner · 17 min03v-model on componentsWhat v-model compiles to on a component, the modelValue prop and update event underneath, defineModel since Vue 3.4, multiple v-models, and modifiers.Intermediate · 17 min04Slots and scoped slotsPassing template content into a component with slots: fallback content, named slots, and scoped slots that hand child data back to the parent's markup.Intermediate · 7 min05Fallthrough attributesHow undeclared attributes and listeners fall through to a component's root, how class and style merge, and controlling it with inheritAttrs and $attrs.Intermediate · 3 min06Provide and injectPassing data to deeply nested components without prop drilling: reactive provided values, readonly guards, Symbol keys, and how it compares to React context.Intermediate · 3 min07Template refs and defineExposeReaching DOM elements and child components with useTemplateRef, refs in v-for, function refs, and exposing a small public API with defineExpose.Intermediate · 12 min01ComposablesExtracting stateful logic into use-prefixed functions built on refs, watchers, and lifecycle hooks, and the conventions that make them reusable.Intermediate · 11 min02VueUseThe community's standard library of composables, what its functions share, the ones you'll reach for first, and when to write your own instead.Intermediate · 16 min03Custom directivesWriting your own v- attributes for low-level DOM behavior, the Vue 3 directive hooks, the binding object, and when a composable is the better tool.Intermediate · 8 min04PluginsPackaging app-wide setup behind app.use, what an install function can register, the createX factory pattern, and pairing a plugin with a composable.Intermediate · 8 min05Render functions and JSXWhat templates compile into, writing vnodes by hand with h(), passing slots and listeners in code, functional components, and using JSX in Vue.Advanced · 16 min01Transition and TransitionGroupHow Vue's <Transition> holds elements in the DOM and toggles enter/leave classes so CSS can animate v-if, plus out-in mode, JS hooks, and TransitionGroup.Intermediate · 10 min02KeepAlive and cached componentsWhy switching dynamic components throws away their state, how <KeepAlive> caches instances instead, and include, exclude, max, onActivated and onDeactivated.Intermediate · 7 min03TeleportWhy modals break inside nested layouts, how <Teleport> renders a fragment elsewhere in the DOM while staying a logical child, and its to, disabled, defer props.Intermediate · 5 min04Async components and SuspenseLazy-loading components with defineAsyncComponent and its loading, error and retry options, then coordinating async setup with experimental <Suspense>.Intermediate · 7 min05Error handling in VueWhat Vue catches for you, app.config.errorHandler for reporting, onErrorCaptured for error-boundary components, and the async errors that still slip past both.Intermediate · 29 min01Vue Router fundamentalsInstalling Vue Router as a plugin, declaring routes with createRouter, rendering them with RouterView and RouterLink, and changing pages from code.Intermediate · 24 min02Dynamic routes and paramsMatching many URLs with one route using :params, reading them reactively, reacting when only the param changes, passing them as props, and query strings.Intermediate · 12 min03Nested routes and named viewsPersistent layouts with children routes and a nested RouterView, default child routes, multiple named outlets, and caching routed views with KeepAlive.Intermediate · 7 min04Navigation guardsAllowing, cancelling, or redirecting navigations with Vue Router's global, per-route, and in-component guards, route meta, and the full resolution order.Intermediate · 15 min01When you need a storeProps, provide/inject, a shared composable, or Pinia — how to tell which one a piece of Vue state actually needs, and what a real store adds.Intermediate · 6 min02Pinia fundamentalsInstall Pinia, define an option store with state, getters and actions, use it in components, and keep reactivity intact with storeToRefs.Intermediate · 28 min03Pinia setup stores and pluginsWrite Pinia stores with the Composition API, use composables and watchers inside them, compose stores, and extend every store with a plugin.Intermediate · 14 min04Vuex and migrating to PiniaRead a Vuex 4 store — state, getters, mutations, actions, modules — and move it to Pinia one module at a time. Vuex is in maintenance mode.Intermediate · 6 min05Data fetching in VueFetch in setup, track loading and error with refs, refetch when inputs change, cancel stale requests, and wrap it all in a useFetch composable.Intermediate · 10 min06TanStack Query for VueReplace hand-rolled fetching with @tanstack/vue-query v5 — reactive query keys, caching, mutations, invalidation — and split state between it and Pinia.Intermediate · 21 min01TypeScript with VueType-checking SFCs with vue-tsc, then typing props, emits, v-model, template refs, provide/inject, and generic components in script setup.Intermediate · 13 min02Styling Vue componentsWhat an SFC's style block can do: scoped CSS and its deep, slotted, and global selectors, CSS modules, v-bind() in CSS, and where Tailwind fits.Beginner · 13 min03Forms and validation in VueForm state and validation from v-model and computed values, then handing the bookkeeping to VeeValidate with a Zod schema, plus FormKit's approach.Intermediate · 14 min04Testing components with Vitest and Vue Test UtilsMounting a Vue component in a test, passing props and slots, simulating input, asserting on output and emitted events, and testing with Pinia stores.Intermediate · 34 min05Component libraries for VueStyled kits, Tailwind-based kits, and headless primitives: how each kind of Vue component library plugs into an app, and how to judge one first.Beginner · 15 min06Performance optimization in VueWhere Vue apps get slow and the fix for each: stable props, v-once, v-memo, and shallowRef for rendering, virtual lists, and lazy loading for bundles.Advanced · 41 min07Debugging with Vue DevToolsInstalling Vue DevTools as an extension or Vite plugin, then using the component inspector, Pinia and router panels, and the timeline to find bugs.Beginner · 7 min01SSR and hydration in VueHow Vue renders an app to HTML on the server with createSSRApp and renderToString, how hydration adopts that HTML, and how to avoid hydration mismatches.Intermediate · 22 min02Nuxt fundamentalsWhat Nuxt adds to Vue and how Nuxt 4 conventions work, from the app/ directory and file-based routing to layouts, auto-imports, Nitro routes, and route rules.Intermediate · 41 min03Data fetching in NuxtWhy Nuxt has useFetch and useAsyncData, how they fetch on the server once and hand the result to the client, and when plain $fetch is the right tool.Intermediate · 15 min04Vapor mode and the future of VueWhat Vue's Vapor mode compiles templates into, why it skips the virtual DOM, how to opt in, what it gives up, and where Vue 3.6 stands in November 2026.Advanced · 20 min

Vue fundamentals

5 lessons

  1. 01 / 05Why Vue and the progressive frameworkThe problem Vue was built to solve, what "progressive framework" actually means in practice, and where Vue 3 sits next to React and Angular today.39 min
  2. 02 / 05Setting up a Vue projectScaffolding a Vue 3 app with create-vue and Vite, what each generated file does, how the app boots from index.html, and the editor and devtools setup.9 min
  3. 03 / 05Single-file componentsThe anatomy of a .vue file, why Vue colocates template, logic, and styles, how the SFC compiler turns it into JavaScript, and how scoped styles work.10 min
  4. 04 / 05Options API vs Composition APIThe two ways to write Vue components, the same component in each, why Vue 3 added the Composition API, and how to read Options API code in older apps.10 min
  5. 05 / 05script setup and compiler macrosWhat <script setup> compiles into, why defineProps, defineEmits, defineModel and the other define* macros need no import, and the rules that follow from that.14 min

Templates and directives

6 lessons

  1. 01 / 06Text interpolation and attribute bindingHow a Vue template puts data into text with double curly braces and into attributes with v-bind, which expressions are allowed, and how values apply.12 min
  2. 02 / 06Conditional rendering with v-if and v-showShowing and hiding parts of a template with v-if, v-else-if, v-else and v-show, and choosing between creating elements and toggling their display.5 min
  3. 03 / 06List rendering with v-forRendering arrays, objects and ranges with v-for, why every list item needs a stable key, and how to filter and sort lists without mixing v-if into the loop.7 min
  4. 04 / 06Class and style bindingsVue's object and array syntax for binding class and style, how bound classes merge with static ones, and when to reach for a class instead of an inline style.6 min
  5. 05 / 06Event handling and modifiersListening to DOM events with v-on, method versus inline handlers, the $event variable, and the event, key and mouse modifiers that cut handler boilerplate.7 min
  6. 06 / 06Form input bindings with v-modelTwo-way binding of native inputs, textareas, checkboxes, radios and selects with v-model, what it expands to, and the .lazy, .number and .trim modifiers.8 min

Reactivity

6 lessons

  1. 01 / 06ref and reactiveDeclaring reactive state in Vue 3 with ref() and reactive(), why refs need .value, where Vue unwraps them for you, and how reactivity gets lost.9 min
  2. 02 / 06Computed propertiesDeriving state with computed() in Vue 3, why results are cached by their dependencies, when to use a method instead, and writable computeds.14 min
  3. 03 / 06Watchers with watch and watchEffectRunning side effects when reactive state changes with watch and watchEffect, plus sources, deep and immediate, flush timing, and cleanup.9 min
  4. 04 / 06How Vue reactivity worksHow Vue tracks dependencies with Proxies, getters, and effects, why updates are batched, and how the engine changed in Vue 3.5 and 3.6.35 min
  5. 05 / 06Shallow reactivity and escape hatchesWhen deep reactivity costs more than it gives, and how shallowRef, shallowReactive, triggerRef, markRaw, toRaw, readonly, and customRef opt you out.12 min
  6. 06 / 06Lifecycle hooksRunning code when a Vue component mounts, updates, and unmounts with onMounted and friends, plus cleanup, the sync-registration rule, and SSR.12 min

Components

7 lessons

  1. 01 / 07Components and propsSplitting an app into child components, declaring props with defineProps, validation and defaults, Vue 3.5 props destructure, and one-way data flow.15 min
  2. 02 / 07Component events and emitsHow a child talks back to its parent with custom events: declaring them with defineEmits, typed and validated payloads, and why they don't bubble.17 min
  3. 03 / 07v-model on componentsWhat v-model compiles to on a component, the modelValue prop and update event underneath, defineModel since Vue 3.4, multiple v-models, and modifiers.17 min
  4. 04 / 07Slots and scoped slotsPassing template content into a component with slots: fallback content, named slots, and scoped slots that hand child data back to the parent's markup.7 min
  5. 05 / 07Fallthrough attributesHow undeclared attributes and listeners fall through to a component's root, how class and style merge, and controlling it with inheritAttrs and $attrs.3 min
  6. 06 / 07Provide and injectPassing data to deeply nested components without prop drilling: reactive provided values, readonly guards, Symbol keys, and how it compares to React context.3 min
  7. 07 / 07Template refs and defineExposeReaching DOM elements and child components with useTemplateRef, refs in v-for, function refs, and exposing a small public API with defineExpose.12 min

Reusing logic

5 lessons

  1. 01 / 05ComposablesExtracting stateful logic into use-prefixed functions built on refs, watchers, and lifecycle hooks, and the conventions that make them reusable.11 min
  2. 02 / 05VueUseThe community's standard library of composables, what its functions share, the ones you'll reach for first, and when to write your own instead.16 min
  3. 03 / 05Custom directivesWriting your own v- attributes for low-level DOM behavior, the Vue 3 directive hooks, the binding object, and when a composable is the better tool.8 min
  4. 04 / 05PluginsPackaging app-wide setup behind app.use, what an install function can register, the createX factory pattern, and pairing a plugin with a composable.8 min
  5. 05 / 05Render functions and JSXWhat templates compile into, writing vnodes by hand with h(), passing slots and listeners in code, functional components, and using JSX in Vue.16 min

Built-in components

5 lessons

  1. 01 / 05Transition and TransitionGroupHow Vue's <Transition> holds elements in the DOM and toggles enter/leave classes so CSS can animate v-if, plus out-in mode, JS hooks, and TransitionGroup.10 min
  2. 02 / 05KeepAlive and cached componentsWhy switching dynamic components throws away their state, how <KeepAlive> caches instances instead, and include, exclude, max, onActivated and onDeactivated.7 min
  3. 03 / 05TeleportWhy modals break inside nested layouts, how <Teleport> renders a fragment elsewhere in the DOM while staying a logical child, and its to, disabled, defer props.5 min
  4. 04 / 05Async components and SuspenseLazy-loading components with defineAsyncComponent and its loading, error and retry options, then coordinating async setup with experimental <Suspense>.7 min
  5. 05 / 05Error handling in VueWhat Vue catches for you, app.config.errorHandler for reporting, onErrorCaptured for error-boundary components, and the async errors that still slip past both.29 min

Routing with Vue Router

4 lessons

  1. 01 / 04Vue Router fundamentalsInstalling Vue Router as a plugin, declaring routes with createRouter, rendering them with RouterView and RouterLink, and changing pages from code.24 min
  2. 02 / 04Dynamic routes and paramsMatching many URLs with one route using :params, reading them reactively, reacting when only the param changes, passing them as props, and query strings.12 min
  3. 03 / 04Nested routes and named viewsPersistent layouts with children routes and a nested RouterView, default child routes, multiple named outlets, and caching routed views with KeepAlive.7 min
  4. 04 / 04Navigation guardsAllowing, cancelling, or redirecting navigations with Vue Router's global, per-route, and in-component guards, route meta, and the full resolution order.15 min

State and data fetching

6 lessons

  1. 01 / 06When you need a storeProps, provide/inject, a shared composable, or Pinia — how to tell which one a piece of Vue state actually needs, and what a real store adds.6 min
  2. 02 / 06Pinia fundamentalsInstall Pinia, define an option store with state, getters and actions, use it in components, and keep reactivity intact with storeToRefs.28 min
  3. 03 / 06Pinia setup stores and pluginsWrite Pinia stores with the Composition API, use composables and watchers inside them, compose stores, and extend every store with a plugin.14 min
  4. 04 / 06Vuex and migrating to PiniaRead a Vuex 4 store — state, getters, mutations, actions, modules — and move it to Pinia one module at a time. Vuex is in maintenance mode.6 min
  5. 05 / 06Data fetching in VueFetch in setup, track loading and error with refs, refetch when inputs change, cancel stale requests, and wrap it all in a useFetch composable.10 min
  6. 06 / 06TanStack Query for VueReplace hand-rolled fetching with @tanstack/vue-query v5 — reactive query keys, caching, mutations, invalidation — and split state between it and Pinia.21 min

Vue in practice

7 lessons

  1. 01 / 07TypeScript with VueType-checking SFCs with vue-tsc, then typing props, emits, v-model, template refs, provide/inject, and generic components in script setup.13 min
  2. 02 / 07Styling Vue componentsWhat an SFC's style block can do: scoped CSS and its deep, slotted, and global selectors, CSS modules, v-bind() in CSS, and where Tailwind fits.13 min
  3. 03 / 07Forms and validation in VueForm state and validation from v-model and computed values, then handing the bookkeeping to VeeValidate with a Zod schema, plus FormKit's approach.14 min
  4. 04 / 07Testing components with Vitest and Vue Test UtilsMounting a Vue component in a test, passing props and slots, simulating input, asserting on output and emitted events, and testing with Pinia stores.34 min
  5. 05 / 07Component libraries for VueStyled kits, Tailwind-based kits, and headless primitives: how each kind of Vue component library plugs into an app, and how to judge one first.15 min
  6. 06 / 07Performance optimization in VueWhere Vue apps get slow and the fix for each: stable props, v-once, v-memo, and shallowRef for rendering, virtual lists, and lazy loading for bundles.41 min
  7. 07 / 07Debugging with Vue DevToolsInstalling Vue DevTools as an extension or Vite plugin, then using the component inspector, Pinia and router panels, and the timeline to find bugs.7 min

Server-side Vue and Nuxt

4 lessons

  1. 01 / 04SSR and hydration in VueHow Vue renders an app to HTML on the server with createSSRApp and renderToString, how hydration adopts that HTML, and how to avoid hydration mismatches.22 min
  2. 02 / 04Nuxt fundamentalsWhat Nuxt adds to Vue and how Nuxt 4 conventions work, from the app/ directory and file-based routing to layouts, auto-imports, Nitro routes, and route rules.41 min
  3. 03 / 04Data fetching in NuxtWhy Nuxt has useFetch and useAsyncData, how they fetch on the server once and hand the result to the client, and when plain $fetch is the right tool.15 min
  4. 04 / 04Vapor mode and the future of VueWhat Vue's Vapor mode compiles templates into, why it skips the virtual DOM, how to opt in, what it gives up, and where Vue 3.6 stands in November 2026.20 min
Esc
↑↓ navigate↵ open? shortcuts

Keyboard shortcuts

Press Esc to close

Anywhere

⌘K
Search and commands
/
Search
?
This sheet
Esc
Close

Reading a lesson

J
Next lesson
K
Previous lesson
B
Bookmark