Several react performance optimization

1 shouldComponentUpdate  PureComponent

2 cycle key

Route 3 lazy loading (react-loadable)

4 Photos lazy loading

5 event bindings do not write on the label, the method cited from the outside

6 immutable

 

---- it has shifted continuously updated with several optimization principle to use up update

Guess you like

Origin www.cnblogs.com/lrqcx/p/12176077.html