You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html
react 提出来的 server component,其实本质上是将 server 端的组件,序列化然后发送给客户端
我关注的不是它减少了水合,而是它到底能不能改变现有的 ssr 模式?
也就是说,可不可以同时吐 html 字符串和 json 字符串
这看上去不太现实,但我认为这个思路或许是有可能的,至少 server component 不需要二次注水不是吗?
我们吐 server component 的字符串远比 client component 的字符串要容易得多
Beta Was this translation helpful? Give feedback.
All reactions