7 min read
•Question 27 of 48hardReact Server Components
Understanding RSC and when to use them.
What are Server Components?
Server Components run only on the server. They can directly access backend resources and don't add to the client bundle.
Server vs Client Components
- Server: Can access DB, filesystem; no state/effects
- Client: Interactive, use hooks, browser APIs
Benefits
- Zero client bundle size
- Direct backend access
- Automatic code splitting