Composables
A composable is a plain function using use* naming that encapsulates stateful reactive logic (e.g. useMouse, useFetch) and returns refs for the consumer; each call creates independent state via closure, lifecycle hooks registered inside bind to the calling component, and this replaces mixins with explicit, collision-free reuse.
This Concept is waiting for its first lesson!
A composable is a plain function using use* naming that encapsulates stateful reactive logic (e.g. useMouse, useFetch) and returns refs for the consumer; each call creates independent state via closure, lifecycle hooks registered inside bind to the calling component, and this replaces mixins with explicit, collision-free reuse.
Are you a teacher? Sign in to start contributing.
Sign In