react-design icon indicating copy to clipboard operation
react-design copied to clipboard

《React设计原理》勘误、资料、交流

Results 5 react-design issues
Sort by recently updated
recently updated
newest added

NextJS 是不是应该叫服务端渲染框架?叫服务端框架的话感觉让人误解。

详细的勘误内容: ![image](https://github.com/BetaSu/react-design/assets/58530871/0b939545-a3d7-48d7-97d1-058e364c4819) 建议在 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}`; ```