Next.js is a Production grade React Framework.
"Next.js gives you the best developer experience with all the features you need for production: hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more. No config needed."
"Next.js focus on performance since you start using it, it is production ready"
pages/index.js → /
pages/blog/index.js → /blogpages/blog/first-post.js → /blog/first-post
pages/dashboard/settings/username.js → /dashboard/settings/username
pages/blog/[slug].js → /blog/:slug (/blog/hello-world)
pages/[username]/settings.js → /:username/settings (/foo/settings)
pages/post/[...all].js → /post/* (/post/2020/id/title)By default, Next.js pre-renders every page. This means that Next.js generates HTML for each page in advance, instead of having it all done by client-side JavaScript. Pre-rendering can result in better performance and SEO.
Each generated HTML is associated with minimal JavaScript code necessary for that page. When a page is loaded by the browser, its JavaScript code runs and makes the page fully interactive. (This process is called hydration.)
The HTML is generated on each request.
To make a page use Server-side Rendering, export getServerSideProps. Because Server-side Rendering results in slower performance than Static Generation, use this only if absolutely necessary.
The HTML is generated at build time and will be reused on each request.
To make a page use Static Generation, either export the page component, or export getStaticProps (and getStaticPaths if necessary). It's great for pages that can be pre-rendered ahead of a user's request. You can also use it with Client-side Rendering to bring in additional data.
HTML is generated once in export time and reused everytime
next export command allows you to export your app to static HTML, which can be run standalone without the need of a Node.js server.
Rust Compiler: ~3x faster Fast Refresh and ~5x faster builds
Middleware (beta): Enabling full flexibility in Next.js with code over configuration
React 18 Support: Native Next.js APIs are now supported, as well as Suspense
React Server Components (alpha): including SSR streaming