News for hackers. Stuff that matters.
Re:When does React re-render? Explaining rerenders and how t... by azangru on Wednesday April 29, 2020 @06:11AM (#23017441)
> This is wrong. Naive React code is rarely fast in relative terms.

Do you remember Ryan Florence's talk Hype at ReactConf 2015, where he compared React performance to that of Ember and Angular 1 [0]? Back in 2015, in relative terms, React seemed fast!

[0] https://www.youtube.com/watch?v=z5e7kWSHWTg

Re:When does React re-render? Explaining rerenders and how t... by vimslayer on Wednesday April 29, 2020 @08:29AM (#23018271)
This talk gained some controversy because the comparison with AngularJS wasn't very fair, IIRC they weren't using some basic optimizations like $index with ngRepeat, which would've been the best practice. React requires the key property for similar purposes and actually displays a console error if you forget it, unlike AngularJS for $index.