Skip to content

Glossary: Vue.js

<script setup>

Also written: script setup

The compact way to write a component's script: it runs once when the component is created, and its top-level variables, functions and imports are available in the template.

Where the book teaches it

Related terms

Composition APISingle-file component (SFC)