跳到主要內容
JobCannon
全部技能

Next.js

The React framework for production web applications

⬢ 層級 1技術
+$20k-
薪資影響
5 個月
學習時長
中等
難度
7
職業
一覽

Next.js is the dominant React framework for production applications, enabling full-stack development with App Router and React Server Components. Career path: Junior React Developer ($105-140k, basic Pages Router/SSR/API routes, 3-4 months) → Senior Full-stack Engineer ($160-200k, App Router mastery, advanced patterns, edge runtime, 5-7 months) → Lead Platform Engineer ($200k+, monorepo architecture, performance optimization). Salary premium: +$20k-$35k above base React roles. Tools: Vercel deployment, Tailwind CSS, Server Components, Middleware, ISR/SSG patterns. Competes with Remix (API-focused, less adoption) and Express.js (lower-level, more boilerplate).

什麼是 Next.js

Next.js by Vercel is the dominant React framework for production applications, providing server-side rendering (SSR), static site generation (SSG), API routes, middleware, and the new App Router with React Server Components. It's the default choice for modern full-stack React development. Next.js abstracts complex web development patterns (routing, rendering, optimization) into a convention-based framework that scales from simple sites to complex enterprise applications.

🔧 工具與生態
Next.js 16VercelTailwind CSSReact Server ComponentsMiddlewareApp RouterISR/SSGAPI RoutesNext.js ImageDynamic ImportsTurbopackPartial Prerendering

💰 各地區薪資

地區初級中級高級
USA$120,000$165,000$210,000
UK£75,000£100,000£135,000
EU€80,000€110,000€150,000
CANADACA$130,000CA$175,000CA$225,000

❓ 常見問題

What is the difference between App Router and Pages Router?
Pages Router (legacy): file-based routing in /pages, simpler mental model, all Server-side Rendering by default. App Router (new): file-based routing in /app, React Server Components by default, better for streaming/Suspense, supports layouts and parallel routes. Use App Router for all new projects, Pages Router is deprecated.
When should I use Server Components vs Client Components?
Server Components (default): fetch data, access secrets, large dependencies, heavy computation, never sent to browser. Client Components (`'use client'`): interactivity, hooks (useState, useEffect), event listeners, browser APIs. Start with Server Components, only mark with `'use client'` when you need interactivity. This reduces JS bundle size and improves performance.
What is ISR, SSG, and SSR? When do I use each?
SSG (Static Site Generation): build-time rendering, cached, fastest, use for static content. ISR (Incremental Static Regeneration): SSG + revalidate on-demand or after delay, use for changing content (blogs, pricing). SSR (Server-Side Rendering): render at request time, use for dynamic, user-specific content. CSR (Client-Side Rendering): old approach, use only for highly interactive apps (avoid for SEO).
How do I deploy Next.js? Is Vercel required?
Vercel is native-optimized (built by Next.js creators) and serverless-ready, but not required. Self-host: Docker, Node.js, Kubernetes. Cloud options: AWS (EC2/ECS), Google Cloud, Azure, Railway, Render. Vercel handles edge functions, ISR revalidation, and preview deployments automatically, worth it for production.
How do Server Components work with state management?
Server Components cannot have state (no hooks). For state: (1) use Client Components + React Context, (2) use Server Actions + form submissions, (3) use URL search params. React 19 Server Actions (mutations) pair with Server Components for interactive forms without Client Components.
What is the edge runtime and when should I use it?
Edge runtime runs code globally on Cloudflare/Vercel edge, <50ms latency. Limitations: no Node.js APIs, no native modules. Use for: authentication, redirects, geolocation, analytics. Don't use for: database queries, heavy computation, file uploads.
Can I migrate from Pages Router to App Router?
Yes, incrementally. Both can coexist. Migrate page-by-page: create /app routes alongside /pages. Use `/app` route if exists, otherwise fallback to `/pages`. Plan 2-4 weeks for large apps. No hard deadline, but App Router is the future.

不確定這項技能適不適合你?

做一下職業匹配,我們會推薦合適的方向。

找到最適合我的技能 →

找到理想的職業方向

在 2,521 個職業中進行技能匹配。免費。

免費做職業匹配 →