sign-ux

Results 12 comments of sign-ux

![image](https://user-images.githubusercontent.com/51436709/125416092-b572fcbd-5de6-4ff9-8482-6886b8b87326.png) 用不用没区别啊?这个例子不是很好 @huihuiha

> **在 React 中,类组件只要执行了 setState 方法,就一定会触发 render 函数执行,函数组件使用useState更改状态不一定导致重新render** > > 这个就一定会触发,表达的不对吧,如果shouldComponentUpdate 返回false呢? 这个需要手动调用比较才会返回false吧,默认值是true 也可以使用PureComponent https://juejin.cn/post/6982456674590130212