- Use
React.PureComponent
, it implementshouldComponentUpdate()
by shallow compare prop and state, it is powerful with Immutable.js. - Use Chrome extension and checked
highlight updates
in dev tool to find any unnecessary updates. - Use React-virtualized for render huge list in small chunk at a time.
Use
Production build
, for example with webpack you need following config:1
2
3
4new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.UglifyJsPlugin()