Skip to content

Glossary: Vue.js

Composition API

Vue's way of writing components with `ref`, `computed` and plain functions, typically inside `<script setup>`. It is the newer alternative to the Options API, which uses `data()` and `methods`.

Where the book teaches it

Related terms

Options API<script setup>ref