Here’s why React Server Components (RSC) are a big performance win: 1
Here’s why React Server Components (RSC) are a big performance win:
1. RSC starts fetching sooner - the moment the request is received. Client components require downloading JS, parsing JS, and running the first render before fetching begins.
2. RSC performs fetches from the server where the connection to the DB is (typically) faster. RSC can even call the DB directly. This is much faster than an HTTP call from the client machine, especially when the client is on a slow connection.
3. RSC can eliminate fetch waterfalls by fetching in many components on the server at the same time.
4. Less JS. Each RSC adds zero K to the bundle.
5. RSC streams responses. So the user can see a skeleton immediately, and they see each component as soon as it’s ready.