Vue Composition API

The Composition API organizes related state, derived values, effects, and functions by feature instead of by Options API option. In Vue 3, it is commonly written with setup() or the compile-time script setup syntax.