Overview of other full-stack frameworks
In this book, we learned about Next.js, the most popular full-stack framework for React. However, other full-stack frameworks might be of interest to you, each coming with its own pros and cons.
Before we can compare the frameworks, though, let’s recap the different methods of rendering in React:
- Client-side rendering (CSR): Renders components in the browser
- Server-side rendering (SSR): Renders components on the server and serves the result
- Static site generation (SSG): Renders components on the server and stores them as static HTML, then serves the static HTML
- Incremental static generation (ISR): Does SSG on the fly and caches the result for a certain amount of time
- Deferred site generation (DSG): Caches all data upon build time and when pages are re-rendered, makes use of that cached data
Additionally, many frameworks (and cloud providers) support the Edge Runtime, a subset of standard web APIs that...