Nuxt & Universal SSR (50 Qs)•Part 1: Nuxt 3 Fundamentals (Junior / Entry-Level)
What is Nuxt 3 and how does it differ from vanilla Vue 3?
junior LevelVue & Nuxt
In Simple Words:
- Vue 3 is a client-side reactive UI library. Out of the box, it compiles into a Single Page Application (SPA) where the browser receives a blank HTML shell (
<div id="app"></div>) and JavaScript renders all elements on the client. - Nuxt 3 is a full-stack, batteries-included framework built on top of Vue 3, Vite, and the Nitro server engine. It provides universal rendering (Server-Side Rendering (SSR), Static Site Generation (SSG), and Hybrid Rendering), automatic file-based routing, intelligent code-splitting, zero-config auto-imports, SEO metadata management, and built-in full-stack API server endpoints.
| Feature | Vanilla Vue 3 | Nuxt 3 |
|---|---|---|
| Rendering Modes | Client-Side SPA by default | Universal (SSR, SSG, SWR/ISR, SPA) |
| Routing | Manual vue-router configuration | Automatic file-based routing (pages/) |
| Backend API | Requires external backend (Node/Express/Go) | Built-in Nitro engine (server/api/) |
| Data Fetching | Standard fetch / Axios in onMounted | SSR-compatible useFetch, useAsyncData |
| SEO | Hard without pre-rendering | Native useHead, useSeoMeta with SSR HTML |
| Imports | Manual import { ref } from 'vue' | Automatic imports for Vue, composables & components |