script setup is the recommended SFC syntax: top-level bindings auto-expose to the template. This lesson covers practical patterns, syntax, and mistakes to avoid.
Using script setup
script setup is the recommended SFC syntax: top-level bindings auto-expose to the template.
Compiler macros like defineProps, defineEmits, defineModel work here.