React perf
import Perf from 'react-addons-perf';
window.perf = Perf;
Perf.start();
ReactDOM.render(<app/>, document.getElementById('react-root'));
Perf.stop();
Perf.printWasted();
When component
updates
when internal state changes
when new props are coming (parent's render
method must be triggered)
component does not check if new props are
di erent
when forceUpdate() method is triggered
What can possibly go
wrong?
state/props mutation
non-speci c connect
large parts of the tree not changing but
rerendering
binding the function in the wrong place
What can help
?react-perf
react-addons-perf
immutability libraries (like Immutable.js)

React performance