https://www.youtube.com/watch?v=TJOiXyVKExg&ab_channel=RealWorldReact
Summary
๐๏ธ In this talk, Jeff discusses the different architectures of using React in various applications, including client-only, server-side rendering (SSR), and React Server Components (RSC). He explains the trade-offs and complexities of each approach, highlighting how RSC introduces a new rendering environment and challenges in nesting server-only and client/server-rendered content.
Facts
- React can be used in multiple ways, each with unique trade-offs.
- Jeff introduces React Server Components (RSC) and discusses their place in the React architecture spectrum.
- Client-only React is simple but lacks SEO and initial load speed.
- Server-side rendering (SSR) improves SEO and initial load speed but increases complexity.
- React Server Components (RSC) offer better performance for complex apps but introduce increased complexity.
- RSC introduces a new rendering environment: server-only, which coexists with client and server/client-rendered content.
- Nesting client and server components within each other in RSC can lead to unexpected complexities.
- RSC implementation was challenging and required close collaboration with the React team.
- RSCโs benefits shine in large, complex apps operating at high scale.
๋ ธํธ
- ๋ง์ง๋ง ์์
- fetch ํจ์๊ฐ ๋ค๋ฅด๋ฉด ๋ค๋ฅธ ์บ์์ ์ ์ฅ๋จ.
- ๊ฐ์ endpoint๋ก ์์ฒญํ๋๋ผ๋, ๋ค๋ฅธ fetch ํจ์๋ก, ๋ค๋ฅธ ์บ์ฑ ์ค์ ์ ์ฃผ์ด ์์ฒญํ๋ฉด ๋ค๋ฅด๊ฒ ๋์ํ๋ค.
- ์๋ฒ์ปดํฌ๋ํธ๋ฅผ ์ฌ์ฉํ๋ฉด ๋ณต์ก๋๊ฐ ์ฌ๋ผ๊ฐ๋, ์๋ฒ์ปดํฌ๋ํธ๊ฐ ๊ตณ์ด ํ์์๋ค๋ฉด ์ฌ์ฉํ์ง ์๋ ๊ฒ์ด ์ข์