react-design
react-design copied to clipboard
《React设计原理》勘误、资料、交流
NextJS 是不是应该叫服务端渲染框架?叫服务端框架的话感觉让人误解。
详细的勘误内容:  建议在 const paths = collectPaths(type, fiber); 下方插入类似如下代码: ```javascript const pathsCapture = collectPaths(type + 'CAPTURE', fiber); triggerEventFlow(pathsCapture, type + "CAPTURE", se); ``` 如此就能注册类似ONCLICKCAPTURE的事件回调了
“倒叙遍历” -> "倒序遍历"
详细的勘误内容 个人理解: 应该遍历的是 lastRawProps 和 nextRawProps 但书中实际是遍历的 lastProps 和 nextProps 两个空值
原文: ```js ele.innerText = '${content}'; ele.className = 'pri-${content}'; ``` 应修改为: ```js ele.innerText = `${content}`; ele.className = `pri-${content}`; ```