Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Perf Tips

基本准则

  • shouldComponentUpdate中避免不必要的检查.

  • 使用不可变数据类型(Immutable).

  • 编写针对产品环境的打包配置(Production Build).

  • 通过Chrome Timeline来记录组件所耗费的资源.

  • componentWillMount或者componentDidMount里面通过setTimeOut或者requestAnimationFram来延迟执行那些需要大量计算的任务.

相关文章

Optimizing Performance: Docs

Performance Engineering with React

Tips to optimise rendering of a set of elements in React

React.js Best Practices for 2016