← All interview questions

Skill Zuno · skillzunos.com · Fullstack

Nuxt interview questions

Prepare for Nuxt interviews on Skill Zuno. This practice book covers Nuxt interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Nuxt on Skill Zuno

Also see the Nuxt tutorial.

Nuxt is a full-stack framework built on Vue. It adds file-based routing, server-side rendering, static generation, auto-imports and a built-in server engine called Nitro. Nuxt interviews cover rendering modes, data fetching with useFetch and useAsyncData, routing, middleware, server routes and SEO.

Sample Nuxt interview questions

What is the difference between useFetch and $fetch?

$fetch makes a plain request. useFetch wraps it in useAsyncData, so data fetched during server rendering is sent to the client in the payload and not fetched again during hydration, and it returns reactive data, pending and error refs.

How does routing work in Nuxt?

Every .vue file in the pages directory becomes a route. Square brackets mark dynamic segments, such as pages/users/[id].vue, and nested folders create nested routes.

What are route rules?

routeRules in nuxt.config set the rendering per path, such as prerendering /about at build time, caching /blog/** with stale-while-revalidate, or rendering /admin/** only on the client.

What is Nitro?

Nitro is Nuxt's server engine. It runs files in server/api as API endpoints and builds output for Node, serverless or edge platforms.

Why use useState instead of ref for shared state?

useState creates state that is shared across components and is serialised from server to client. A ref declared at module level would be shared between all users' requests on the server.

What you can practice

  • Nuxt interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack topics alongside Nuxt on skillzunos.com

More Fullstack interview questions

All interview questions