Skip to content

Nextjs Framework

Master Nextjs Framework with 50 free flashcards. Study using spaced repetition and focus mode for effective learning in Programming.

🎓 50 cards ⏱️ ~25 min Advanced
Study Full Deck →
Share: 𝕏 Twitter LinkedIn WhatsApp

🎯 What You'll Learn

Preview Questions

12 shown

What is Next.js?

Show ▼

Next.js is a React framework created by Vercel that provides features like server-side rendering, static site generation, file-based routing, and API routes out of the box. It simplifies building production-ready React applications.

What is the App Router in Next.js?

Show ▼

The App Router (introduced in Next.js 13) uses the app/ directory and supports React Server Components, nested layouts, streaming, and colocation of files. It replaces the older Pages Router (pages/ directory).

How does file-based routing work in the App Router?

Show ▼

Routes are defined by the folder structure inside app/. A route is created by adding a page.tsx file inside a folder. For example, app/about/page.tsx maps to the /about route.

What is a Server Component in Next.js?

Show ▼

A Server Component renders on the server and sends HTML to the client. It is the default in the App Router. Server Components can directly access databases, read files, and fetch data without exposing secrets to the client.

What is a Client Component in Next.js?

Show ▼

A Client Component is declared with "use client" at the top of the file. It runs in the browser and supports interactivity: event handlers, state (useState), effects (useEffect), and browser APIs.

When should you use a Client Component vs a Server Component?

Show ▼

Use Client Components when you need:Event listeners (onClick, onChange)React hooks (useState, useEffect)Browser-only APIsUse Server Components for everything else — data fetching, static content, and accessing backend resources.

What is SSR (Server-Side Rendering) in Next.js?

Show ▼

SSR generates HTML on the server at request time. Each incoming request triggers a fresh render. In the App Router, this is the default behavior when a page uses dynamic functions like cookies() or headers().

What is SSG (Static Site Generation) in Next.js?

Show ▼

SSG generates HTML at build time. Pages are pre-rendered and served as static files from a CDN. In the App Router, pages without dynamic data are automatically statically generated.

What is ISR (Incremental Static Regeneration)?

Show ▼

ISR allows you to update static pages after the site has been built. You set a revalidate time (in seconds) so that stale pages are regenerated in the background. Example: fetch(url, { next: { revalidate: 60 } }).

How do you create a dynamic route in the App Router?

Show ▼

Use square brackets in the folder name: app/blog/[slug]/page.tsx. The dynamic segment is available via params:
export default function Page({ params }: { params: { slug: string } })

What is a catch-all route in Next.js?

Show ▼

A catch-all route uses [...slug] syntax, e.g., app/docs/[...slug]/page.tsx. It matches /docs/a, /docs/a/b, etc. The params are returned as an array: params.slug = ['a', 'b'].

What is an optional catch-all route?

Show ▼

An optional catch-all uses [[...slug]] syntax. It matches the parent route as well, e.g., app/docs/[[...slug]]/page.tsx matches both /docs and /docs/a/b.

🎓 Start studying Nextjs Framework

🎮 Study Modes Available

🔄

Flashcards

Flip to reveal

🧠

Focus Mode

Spaced repetition

Multiple Choice

Test your knowledge

⌨️

Type Answer

Active recall

📚

Learn Mode

Multi-round mastery

🎯

Match Game

Memory challenge

Related Topics in Programming

📖 Learning Resources