1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-25 16:39:02 +02:00

Update content for vue composition api (#8607)

This commit is contained in:
The Jared Wilcurt
2025-05-06 18:57:36 -04:00
committed by GitHub
parent 599e4528ab
commit e2e569617d

View File

@@ -1,6 +1,6 @@
# Composition API # Composition API
With the release of Vue 3, developers now have access to the Composition API, a new way to write Vue components. This API allows features to be grouped together logically, rather than having to organize your single-file components by function. Using the Composition API can lead to more readable code, and gives the developer more flexibility when developing their applications. Vue offers many approaches for how to write components, including the "Composition API", which is most commonly used via "Script Setup". This approach is based around pulling in low level atomic functions used by Vue's reactivity engine. By composing these low level functions together, you can craft your own system for writing components. One feature this allows for is extending reactivity outside of components. This means you can extract your custom functions for reuse in multiple components. When reusing reactive logic, your functions are called "composables".
Visit the following resources to learn more: Visit the following resources to learn more: