Skip to content

Glossary: Vue.js

Composable

Also written: composables, useFetchJSON

A function whose name starts with `use` that uses refs, computed values or watchers and returns refs, so several components can share the same logic. For example, `useFetchJSON` loads data from a URL and returns `data`, `error` and `loading` refs.

Where the book teaches it

Related terms

refwatchEffecttoValue