Vue · Middle · Question 52 of 75

Why prefer local imports over global app.component() registration?

Explanation

With <script setup>, importing a component is enough to use it. Global registration fits a few truly ubiquitous base components.

Further reading

Problem with a question

Vue · Middle · question 52

Test yourself

Take the Vue · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz