Scaling UpLesson 41Free preview
Vue Composition API
This lesson is part of Vue · All levels
Summary
Composition APIs are a way of writing component logic by combining small functions through setup, as opposed to Options APIs which group based options such as data and methods. The related logic can be placed close together so it's easier to find and reuse. Composable became the main pattern for reusable logic packaging.
Key points
- The Composition API manages logic through setup or script setup.
- Ref and reactive become the basis for the creation of the reactive state.
- Computed and watch are available as composable in the Composition API.
- Related logic can be grouped closely into a single function.
- Composable is a function that returns the reactive state and method.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.