2 ms·
> I would argue that the beauty of ReactJS is that it doesn't have any gotchas. It's performant without needing a deep knowledge of the framework. shouldCompon
by Touche 11y ago
> I would argue that the beauty of ReactJS is that it doesn't have any gotchas. It's performant without needing a deep knowledge of the framework.
shouldComponentUpdate is just as "deep" as this Angular optimization.
- TheCoelacanth 11y agoJust use PureRenderMixin for all components and you never have to implement shouldComponentUpdate.
- woah 11y agoshouldComponentUpdate is generalizable across any type of component. The angular thing looked like something array specific.