![代码家 Profile](https://pbs.twimg.com/profile_images/1079686710282182663/tBz4bUwK_x96.jpg)
代码家
@daimajia
Followers
9K
Following
2K
Statuses
2K
真格基金投资VP 👈 峰瑞资本投资经理 👈 掘金cofounder 👈 北师大研究僧
Joined September 2012
I am the top 1 java developer in China, and the 3 java developer Worldwide. ranking on GitHub Awards ! http://t.co/xivdMMAQwx
23
8
85
RT @HuntScreens: AI Kissing Video Generator Transform photos into realistic kissing videos with AI. #HuntScreens…
0
1
0
再补充两句 为什么 server render 遇到 包含 server 组件 的 client 组件 会出错,为什么 client 组件一定要是 leaf 节点,因为本来 client 组件会被送到浏览器来渲染,但是还有一个 server 组件没渲染怎么办? 想象这么一个情况 一个 client 组件的状态要根据 浏览器 localstorage 存储的数据来改变 ui ,server render 本来要送出去就行了 但是一想到还有一个 被 client 组件包含的 server 组件没有渲染,就尝试渲染这个 client 组件,渲染的时候发现我这里(服务器端)根本没法读取用户浏览器的 localstoage ,自然会报错。
1
0
4