Why You NEED the Context Argument in Vue 3?

Опубликовано: 14 Июнь 2021
на канале: LearnVue
7,934
321

When working in the Vue 3 Composition API, there are brand new ways to access component functionality. In this article, we’ll be taking a look at the setup function’s context argument.

These changes are necessary because, in the Composition API, we don’t have the same reference to this as we do in the Options API.

In this video, we'll be taking a deeper look at the setup(props, context) syntax.

COMPANION ARTICLE
https://learnvue.co/2021/06/explainin...

FREE VUE 3 CHEATSHEET WITH ESSENTIAL CODE SNIPPETS
https://learnvue.co/vue-3-essentials-...

follow me on twitter:

  / mattmaribojoc  


🚨 Like quick Vue lessons like these? Check out 800+ lessons over on Vue School - https://go.learnvue.co/vueschool

INTRO
Daily (Prod. by Lukrembo)