Question · Vue.js course · Module 6: Components

Auto-registration in script setup

What happens to components imported in <script setup>?

Answer options

  • They must be registered via components: {}
  • They require export default
  • They cannot be used in the template
  • They are automatically available in the template after import

You can check the correct answer by solving this task in the CodeWorlds game.