Vue.js · Concept
Composables
A composable is a reusable function built with Vue's Composition API. It packages stateful logic and can use reactive APIs, lifecycle hooks, and other composables.
Last updated
Syntax
function useFeature(input) { /* stateful logic */ return { state } }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Composition APIref()reactive()toValue()watch()watchEffect()onMounted()onUnmounted()