This RFC (Request for Comment) outlines the biggest update to Next.js since it was introduced in 2016:
The new Next.js router will be built on top of the recently released React 18 features. We plan to introduce defaults and conventions that allow you to easily adopt these new features and take advantage of the benefits they unlock.
Work on this RFC is ongoing and we'll announce when the new features are available. To provide feedback, join the conversation on Github Discussions .
We've been gathering community feedback from GitHub, Discord, Reddit, and our developer survey about the current limitations of routing in Next.js. We've found that:
While the current routing system has worked well since the beginning of Next.js, we…
This is an excerpt. The full article is published by Next.js Blog.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Motivation Terminology How Routing Currently Works The app Directory Defining Routes Layouts Pages React Server Components Data Fetching Route Groups (New) Server Centric Routing (New) Instant Loading States (New) Error Handling (New) Templates (New) Advanced Routing Patterns (New) Conclusion Copy link
General
We've been gathering community feedback from GitHub, Discord, Reddit, and our developer survey about the current limitations of routing in Next.js. We've found that: While the current routing system has worked well since the beginning of Next.js, we want to make it easier for developers to build more performant and feature-rich web applications. As framework maintainers, we also want to build a routing system that is backwards compatible and alig
General
You can use the folder hierarchy inside app to define routes. A route is a single path of nested folders, following the hierarchy from the root folder down to a final leaf folder. For example, you can add a new /dashboard/settings route by nesting two new folders in the app directory.
General
To ensure these new improvements can be incrementally adopted and avoid breaking changes, we are proposing a new directory called app. The app directory will work alongside the pages directory. You can incrementally move parts of your application to the new app directory to take advantage of the new features. For backwards compatibility, the behavior of the pages directory will remain the same and continue to be supported.
General
This RFC (Request for Comment) outlines the biggest update to Next.js since it was introduced in 2016: