Skip to main content
CourseFlix

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: vueschool.io

vueschool.io thumbnail
Learning about new web technologies and staying-up-to-date is an ongoing process. That’s why we offer affordable subscription plans for individuals and teams.

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