Recently, the topic of React Server Components has become more prevalent.
I took the time to review React concepts like SPA, data fetching and client-side rendering, SSR, and Suspense.
Let's dive into React Server Components!!
First,
How does it work?
What is the difference between normal components?
When render and commit in streaming?
...What's RSC?
(I need your public review🙃)
これを見て自分の中の靄が晴れてきた感じ。
Jotai / Recoil は従来のReduxのようなトップダウンな状態管理ライブラリではなくボトムアップ型。
なので一元的にまとめるような構成は哲学に反してる気がする。
Single source of truth 、巨大なstoreから切り出すのを忘れよう?
zenn.dev/8_8/articles/5…
React Server Components の前に知っておいたほうが良さそうなStreaming HTMLとSelective Hydration。
Data fetchやcode splitしたいコンポーネントをSuspenseで囲んでおいて初期表示を速める(SSRという点はこれまでと変わらず)。残りの2,3,4もSSRなんだけど並列化可能。
全てSSRという点に注目。