Re:When does React re-render? Explaining rerenders and how t...
by davedx on Wednesday April 29, 2020 @06:34AM
(#23017592)
It makes sense, if it's changing very quickly and re-rendering the whole component tree -- say it's some kind of realtime stream of updates or a graphql subscription. And then of course you should try and optimize so only that component is re-rendered. My main argument is against people who try to argue that you should memoize a form input field or a div or something that changes once every few seconds or so. It's just pointless.
[ Parent
| on HN ]
There are no comments on this comment yet.