-
Notifications
You must be signed in to change notification settings - Fork 83
Add a recommendation to use .shouldComponentUpdate or React.PureComponent in the console.log #35
Comments
I wouldn't, because there are many better ways to prevent wasted renders, especially if using Redux or Mobx. And there could be new methods in the future. |
Better ways? Can you elaborate? |
Yes please elaborate. The readme should at least point to some resources and showcase different the approaches. |
I think the point of @caesarsol is that avoiding re-render is not only about |
Sorry for the delay. That's exactly my point! For example the recommended way to better performance in my opinion is to divide in multiple connected components, which render independently. But it's not an absolite rule because too many connected components can actually slow down the page... The important thing is that Redux has I'm sure @gaearon could give many more advices, and already has somewhere between Medium and Twitter :) |
As opposed to just showing that props are unchanged.
The text was updated successfully, but these errors were encountered: