shouldComponentUpdate是做什么的

shouldComponentUpdate 这个方法用来判断是否需要调用render方法重新绘制dom

因为DOM的描绘非常消耗性能,如果我们能在shouldComponentUpdate 方法中能够写出更优化的 dom diff 算法,可以极大的提高性能


shouldComponentUpdate是做什么的
https://blog.fullsize.cn/2020/12/08/notion/shouldcomponentupdate-shi-zuo-shi-me-de/
作者
fullsize
发布于
2020年12月8日
许可协议