shouldComponentUpdate是做什么的
shouldComponentUpdate 这个方法用来判断是否需要调用render方法重新绘制dom
因为DOM的描绘非常消耗性能,如果我们能在shouldComponentUpdate 方法中能够写出更优化的 dom diff 算法,可以极大的提高性能
shouldComponentUpdate是做什么的
https://blog.fullsize.cn/2020/12/08/notion/shouldcomponentupdate-shi-zuo-shi-me-de/