(1/20) What is the main advantage of using the Composition API to define global state in a standalone file, compared to using Vuex or Pinia?


(2/20) Which approach is recommended for large-scale state management in Vue 3?


(3/20) Why might you use dynamic components (via <component :is="...">) instead of multiple v-if blocks in a Vue 3 template?


(4/20) How can you share a global function (e.g. a formatting helper) across all components in a Vue 3 app without importing it in every file?


(5/20) How do you define watchers for a reactive array if you want to see changes to item fields in Vue 3, not just additions or removals?


(6/20) Which approach might you use to combine reactive state and computed properties in a single file that is importable in multiple Vue 3 components?


(7/20) In Vue 3, how do you dynamically switch between multiple components in the same spot, preserving their internal states?


(8/20) Which statement about using onActivated and onDeactivated hooks in Vue 3 is correct?


(9/20) How can you reference a DOM element from inside the setup() function if you’re not using <script setup>?


(10/20) Which statement about combining 'mixins' and 'composables' in Vue 3 is correct?


(11/20) Which statement about watchers in Vue 3 is correct when using watchEffect?


(12/20) If a component needs both a 'getter' and 'setter' in a computed property in the Composition API, how do you define it?


(13/20) What is the best approach to define reactive state outside of components in Vue 3?


(14/20) How can you force Vue 3 to treat a new property addition on a reactive object as a reactivity update (like Vue.set in Vue 2)?


(15/20) Which statement about the Composition API's onErrorCaptured hook in Vue 3 is correct?


(16/20) Which approach might you take if you want to manually test a large form’s watchers in a Vue 3 component using @vue/test-utils or Vitest?


(17/20) What is the role of Transition and TransitionGroup components in Vue 3?


(18/20) Which statement about the usage of $attrs in Vue 3 with the Composition API is accurate?


(19/20) In Vue 3, how do you apply an animation when an item is re-ordered (e.g., when using v-for with array sorting) rather than just appearing/disappearing?


(20/20) If you see a compile-time error 'Cannot read property of undefined' in <script setup> when referencing a top-level variable, which scenario might cause this?