next

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Next.js is a React framework for building full-stack web applications. It provides file-system based routing, Server Components, automatic code splitting, image optimization, and built-in performance optimizations. Next.js supports both static site generation (SSG) and server-side rendering (SSR), making it ideal for building modern web applications.
The skill is based on Next.js v16.2.0-canary.16, generated at 2026-01-30.
Next.js 是一个用于构建全栈Web应用的React框架。它提供基于文件系统的路由、Server Components、自动代码分割、图片优化以及内置的性能优化功能。Next.js 同时支持静态站点生成(SSG)和服务端渲染(SSR),非常适合构建现代Web应用。
本技能基于Next.js v16.2.0-canary.16版本生成,生成时间为2026-01-30。

Core References

核心参考文档

TopicDescriptionReference
File-System RoutingRoutes defined by folder structure, layouts, and pagescore-routing
Server and Client ComponentsUnderstanding when to use Server vs Client Componentscore-server-client-components
NavigationLinking, prefetching, and client-side transitionscore-navigation
主题描述参考链接
File-System Routing通过文件夹结构、布局和页面定义路由core-routing
Server and Client Components了解何时使用Server Components vs Client Componentscore-server-client-components
Navigation链接、预加载和客户端路由跳转core-navigation

Data Fetching

数据获取

TopicDescriptionReference
Server ComponentsFetching data in Server Components with fetch, ORMs, and databasesdata-fetching-server
Client ComponentsFetching data in Client Components with use hook and third-party librariesdata-fetching-client
StreamingStreaming data and components with Suspense and loading.tsxdata-streaming
主题描述参考链接
Server Components在Server Components中使用fetch、ORM和数据库获取数据data-fetching-server
Client Components在Client Components中使用use钩子和第三方库获取数据data-fetching-client
Streaming使用Suspense和loading.tsx实现数据和组件流式传输data-streaming

Caching and Revalidation

缓存与重新验证

TopicDescriptionReference
Caching StrategiesCaching fetch requests, cache tagging, and revalidationcaching-revalidation
主题描述参考链接
Caching Strategies缓存fetch请求、缓存标记和重新验证caching-revalidation

Server Actions

Server Actions

TopicDescriptionReference
Server FunctionsCreating and using Server Actions for data mutationsserver-actions
主题描述参考链接
Server Functions创建并使用Server Actions进行数据变更server-actions

File Conventions

文件约定

TopicDescriptionReference
Dynamic RoutesDynamic segments, catch-all routes, and route parametersfile-conventions-dynamic-routes
Loading and ErrorHandling loading states and errors with loading.tsx and error.tsxfile-conventions-loading-error
主题描述参考链接
Dynamic Routes动态路由段、兜底路由和路由参数file-conventions-dynamic-routes
Loading and Error使用loading.tsx和error.tsx处理加载状态和错误file-conventions-loading-error

API Reference

API参考

TopicDescriptionReference
Built-in ComponentsLink, Image, Script, and Font componentsapi-components
主题描述参考链接
Built-in ComponentsLink、Image、Script和Font组件api-components