Chapter quiz · Composition API & Reactivity

Test what you learned.

8 questions on Composition API & Reactivity. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Composition API & Reactivity — Chapter Quiz

Eight questions on script setup, props/emits, lifecycle, composables, and refs deep dive.

0/ 9
  1. Question 1
    1

    What is the right way to declare typed props in <script setup lang="ts">?

  2. Question 2
    2

    Which macro emits a typed event from a script-setup component?

  3. Question 3
    3

    What runs in onMounted(cb)?

  4. Question 4
    4

    A composable is best described as:

  5. Question 5
    5

    Which API pair shares values from an ancestor to descendants without props drilling?

  6. Question 6
    6

    shallowRef only triggers reactivity when the ref itself is reassigned, not on deep mutations.

  7. Question 7
    7

    To destructure a reactive object while keeping reactivity on the destructured props, use ___.

  8. Question 8
    8

    Which of these are valid Vue 3 lifecycle hooks in <script setup>?

    Select all that apply.

Pick an answer — instant feedback as you go.