Vue
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.
Why 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.Setting 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.Single-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.Options 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.script 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.Text 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.Conditional 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.List 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.Class 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.Event 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.Form 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.ref 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.Computed propertiesDeriving state with computed() in Vue 3, why results are cached by their dependencies, when to use a method instead, and writable computeds.Watchers with watch and watchEffectRunning side effects when reactive state changes with watch and watchEffect, plus sources, deep and immediate, flush timing, and cleanup.How 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.Shallow reactivity and escape hatchesWhen deep reactivity costs more than it gives, and how shallowRef, shallowReactive, triggerRef, markRaw, toRaw, readonly, and customRef opt you out.Lifecycle hooksRunning code when a Vue component mounts, updates, and unmounts with onMounted and friends, plus cleanup, the sync-registration rule, and SSR.Components and propsSplitting an app into child components, declaring props with defineProps, validation and defaults, Vue 3.5 props destructure, and one-way data flow.Component 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.v-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.Slots 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.Fallthrough attributesHow undeclared attributes and listeners fall through to a component's root, how class and style merge, and controlling it with inheritAttrs and $attrs.Provide and injectPassing data to deeply nested components without prop drilling: reactive provided values, readonly guards, Symbol keys, and how it compares to React context.Template refs and defineExposeReaching DOM elements and child components with useTemplateRef, refs in v-for, function refs, and exposing a small public API with defineExpose.ComposablesExtracting stateful logic into use-prefixed functions built on refs, watchers, and lifecycle hooks, and the conventions that make them reusable.VueUseThe community's standard library of composables, what its functions share, the ones you'll reach for first, and when to write your own instead.Custom 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.PluginsPackaging app-wide setup behind app.use, what an install function can register, the createX factory pattern, and pairing a plugin with a composable.Render 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.Transition 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.KeepAlive and cached componentsWhy switching dynamic components throws away their state, how <KeepAlive> caches instances instead, and include, exclude, max, onActivated and onDeactivated.TeleportWhy 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.Async components and SuspenseLazy-loading components with defineAsyncComponent and its loading, error and retry options, then coordinating async setup with experimental <Suspense>.Error 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.Vue Router fundamentalsInstalling Vue Router as a plugin, declaring routes with createRouter, rendering them with RouterView and RouterLink, and changing pages from code.Dynamic 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.Nested routes and named viewsPersistent layouts with children routes and a nested RouterView, default child routes, multiple named outlets, and caching routed views with KeepAlive.Navigation guardsAllowing, cancelling, or redirecting navigations with Vue Router's global, per-route, and in-component guards, route meta, and the full resolution order.When 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.Pinia fundamentalsInstall Pinia, define an option store with state, getters and actions, use it in components, and keep reactivity intact with storeToRefs.Pinia 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.Vuex 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.Data 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.TanStack Query for VueReplace hand-rolled fetching with @tanstack/vue-query v5 — reactive query keys, caching, mutations, invalidation — and split state between it and Pinia.TypeScript with VueType-checking SFCs with vue-tsc, then typing props, emits, v-model, template refs, provide/inject, and generic components in script setup.Styling 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.Forms 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.Testing 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.Component 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.Performance 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.Debugging 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.SSR 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.Nuxt 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.Data 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.Vapor 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.
Vue fundamentals
- Why 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.
- Setting 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.
- Single-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.
- Options 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.
- script 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.
Templates and directives
- Text 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.
- Conditional 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.
- List 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.
- Class 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.
- Event 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.
- Form 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.
Reactivity
- ref 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.
- Computed propertiesDeriving state with computed() in Vue 3, why results are cached by their dependencies, when to use a method instead, and writable computeds.
- Watchers with watch and watchEffectRunning side effects when reactive state changes with watch and watchEffect, plus sources, deep and immediate, flush timing, and cleanup.
- How 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.
- Shallow reactivity and escape hatchesWhen deep reactivity costs more than it gives, and how shallowRef, shallowReactive, triggerRef, markRaw, toRaw, readonly, and customRef opt you out.
- Lifecycle hooksRunning code when a Vue component mounts, updates, and unmounts with onMounted and friends, plus cleanup, the sync-registration rule, and SSR.
Components
- Components and propsSplitting an app into child components, declaring props with defineProps, validation and defaults, Vue 3.5 props destructure, and one-way data flow.
- Component 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.
- v-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.
- Slots 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.
- Fallthrough attributesHow undeclared attributes and listeners fall through to a component's root, how class and style merge, and controlling it with inheritAttrs and $attrs.
- Provide and injectPassing data to deeply nested components without prop drilling: reactive provided values, readonly guards, Symbol keys, and how it compares to React context.
- Template refs and defineExposeReaching DOM elements and child components with useTemplateRef, refs in v-for, function refs, and exposing a small public API with defineExpose.
Reusing logic
- ComposablesExtracting stateful logic into use-prefixed functions built on refs, watchers, and lifecycle hooks, and the conventions that make them reusable.
- VueUseThe community's standard library of composables, what its functions share, the ones you'll reach for first, and when to write your own instead.
- Custom 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.
- PluginsPackaging app-wide setup behind app.use, what an install function can register, the createX factory pattern, and pairing a plugin with a composable.
- Render 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.
Built-in components
- Transition 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.
- KeepAlive and cached componentsWhy switching dynamic components throws away their state, how <KeepAlive> caches instances instead, and include, exclude, max, onActivated and onDeactivated.
- TeleportWhy 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.
- Async components and SuspenseLazy-loading components with defineAsyncComponent and its loading, error and retry options, then coordinating async setup with experimental <Suspense>.
- Error 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.
Routing with Vue Router
- Vue Router fundamentalsInstalling Vue Router as a plugin, declaring routes with createRouter, rendering them with RouterView and RouterLink, and changing pages from code.
- Dynamic 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.
- Nested routes and named viewsPersistent layouts with children routes and a nested RouterView, default child routes, multiple named outlets, and caching routed views with KeepAlive.
- Navigation guardsAllowing, cancelling, or redirecting navigations with Vue Router's global, per-route, and in-component guards, route meta, and the full resolution order.
State and data fetching
- When 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.
- Pinia fundamentalsInstall Pinia, define an option store with state, getters and actions, use it in components, and keep reactivity intact with storeToRefs.
- Pinia 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.
- Vuex 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.
- Data 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.
- TanStack Query for VueReplace hand-rolled fetching with @tanstack/vue-query v5 — reactive query keys, caching, mutations, invalidation — and split state between it and Pinia.
Vue in practice
- TypeScript with VueType-checking SFCs with vue-tsc, then typing props, emits, v-model, template refs, provide/inject, and generic components in script setup.
- Styling 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.
- Forms 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.
- Testing 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.
- Component 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.
- Performance 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.
- Debugging 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.
Server-side Vue and Nuxt
- SSR 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.
- Nuxt 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.
- Data 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.
- Vapor 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.