|
|
|
|
|
by dounan
3316 days ago
|
|
The reason arrow functions and bind don't play well with PureComponents is that they return a new function instance each time. This means that the Data pure component will wastefully re-render even if none of the other props change. |
|
If you did this.foo = this.foo.bind(this, props.bar) in the constructor then it would be the same function each time.