Skip to main content
CF

Vue 3 Composition API 3

1h 59m 20s
English
Paid

Vue 3 brings a new way to write code with the Composition API. You see how it works step by step. This course guides you from the basics to real examples you can use in your own apps.

What You Learn

You learn how to write clear logic with the Composition API. You also see how it differs from the Options API you may know already.

  • How to start using the Composition API
  • What a ref is and how it behaves
  • The difference between ref and reactive
  • How to use props, attrs, slots, and emit
  • How to watch data and act on changes
  • How to use lifecycle hooks
  • How provide and inject work
  • How to cut boilerplate with the setup attribute
  • How to use async and await in setup
  • How to write reusable composables
  • How to use composables for shared state

Course Guide

Key Concepts

You start by learning how Vue tracks state. You work with refs and reactive objects. You see when each tool makes sense.

Component Features

You learn how to pass data in and out of components. You use props and emit to keep code clear and easy to follow.

Logic and Reactivity

You watch for data changes and run code when these changes happen. You also learn how to use lifecycle hooks for setup and cleanup.

Composables

You build small functions that hold shared logic. You reuse these functions across many components. This helps keep your code simple.

Requirements

You should know JavaScript and ES6 basics like arrow functions and imports. You also need a basic grasp of Vue and the Options API.

Additional

https://github.com/vueschool/vue-3-composition-api/

About the Author: Vue School

Vue School thumbnail

Vue School (vueschool.io) is a Greece-based Vue.js training platform founded by Alex Kyriakidis, an early Vue community member and one of the longest-running independent Vue educators. Vue School operates as both an on-demand course platform and a Vue / Nuxt consulting business, with course material that often emerges from real client engagements.

Course material covers the full Vue ecosystem: Vue 3 fundamentals through advanced Composition API patterns, Nuxt 3 production deployment, Pinia state management, Vue Router, the testing track with Vitest, TypeScript with Vue, real-time features with Pusher / WebSockets, and the broader full-stack Vue work. Vue School also publishes the popular Mastering Pinia course in collaboration with Pinia's author Eduardo San Martín Morote.

The CourseFlix listing under this source carries over 30 Vue School courses spanning that range. Material is paid; Vue School runs on per-course or membership pricing on the original platform. Courses are aimed at Vue developers from beginner through senior level building production Vue applications.

Watch Online 22 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 22 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Course Introduction
All Course Lessons (22)
#Lesson TitleDurationAccess
1
Course Introduction Demo
01:25
2
Introduction to the Vue.js 3 Composition API
08:46
3
Set up a Local Environment with Vite
03:35
4
Vue Composition API Setup Method
06:53
5
The Setup Method's Parameters: props and context
06:14
6
Reactive Primitives with Refs
07:00
7
Reactive Data with the Composition API
04:49
8
Refs vs Reactive With the Vue 3 Composition API
08:56
9
Computed Properties in the Composition API
05:14
10
Using Watch with the Composition API
09:00
11
The Composition API watchEffect Function
02:52
12
Using provide / inject with the Composition API
08:42
13
Lifecycle hooks and the Composition API
01:02
14
Script Setup
04:11
15
Overview of Example Blog
04:23
16
Creating a usePost Composable
04:02
17
Using the usePost Composable in Multiple Components
02:58
18
Using Vue Router with Composition API
03:04
19
Refactoring for a More Versatile Composable
06:46
20
Asynchronous Data and the Composition API
05:00
21
The Suspense Component
04:55
22
Use Shared State Between Uses of a Composable
09:33
Unlock unlimited learning

Get instant access to all 21 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Related courses

Frequently asked questions

What are the prerequisites for enrolling in this course?
To enroll in this course, you should have a foundational understanding of JavaScript and ES6, particularly concepts like arrow functions and imports. Additionally, a basic grasp of Vue and the Options API is necessary as the course builds upon these concepts when introducing the Composition API.
What will I build during the course?
During the course, you will engage with several practical exercises, including setting up a local environment with Vite, creating a usePost composable, and using it across multiple components in an example blog. These projects aim to provide real-world applications of the Composition API in Vue 3.
Who is the target audience for this course?
This course is designed for developers familiar with Vue and the Options API who wish to deepen their understanding by learning how to use the Composition API. It is suitable for those looking to write more maintainable and clear logic in their Vue applications.
How does this course compare in depth to other Vue courses?
Compared to other Vue courses, this one focuses specifically on the Composition API introduced in Vue 3, offering detailed insights into its features like refs, reactive, composables, and more. While it assumes prior knowledge of the Options API, it provides a deeper dive into writing reusable logic and managing component states using the newer API.
What specific tools and platforms are covered in this course?
The course covers setting up a development environment using Vite, and explains how to integrate the Vue Router with the Composition API. These tools are essential for building modern, modular Vue applications and are thoroughly explored in the context of Composition API usage.
What topics are not covered in this course?
This course does not cover the basic concepts of JavaScript or the Vue Options API in detail. It assumes that you are already familiar with these topics and focuses on advancing your skills with the Composition API specifically.
How much time should I expect to commit to this course?
The course consists of 22 lessons. While the exact runtime is unspecified, you should allocate sufficient time for both the video lessons and hands-on practice. Depending on your familiarity with the course prerequisites, additional time might be needed to explore the example projects thoroughly.