Skip to main content
Practice Problems

How do auto-imports work in Nuxt?

javascript
// No imports needed! <script setup> // Auto-imported from composables/ const { data } = await useFetch("/api/users"); const route = useRoute(); // Auto-imported from components/ </script> <template> <UserCard /> <!-- Auto-imported --> </template>

Short Answer

Interview ready
Premium

A concise answer to help you respond confidently on this topic during an interview.

Finished reading?
Practice Problems