React如何解决子组件无脑更新? 爱写注释的CC 2024-06-16 2 阅读1分钟 使用 const child2 = React.memo( child )这样包裹就是根据props更新不会出现无脑更新了