4 ms·
This is going against the actual established best practice of avoiding premature optimisations. React renders are crazy cheap, and when they start getting expen
by activitypea 5y ago
This is going against the actual established best practice of avoiding premature optimisations. React renders are crazy cheap, and when they start getting expensive, you can just chuck a PureComponent in there and `cut off` a whole subtree from unnecessary rerendering.
- ZephyrBlu 5y agoThere are definitely ways to mitigate excessive re-renders (Though they don't solve the problem of what happens when it actually needs to re-render), but there are also other reasons for wanting to push logic down the tree as far as possible like the one the author was conveying.