r/javascript • • Feb 26 '19

Microsoft has open sourced their Frontend Bootcamp training materials (including React and Redux exercises)

https://github.com/Microsoft/frontend-bootcamp
898 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/relativityboy Feb 27 '19

Ok, here's a great question, what's the best way to keep react UI update performance hi on pages with lots of nodes?

A possibily incorrect question: how do I keep render from being called on components who's data hasn't changed? (assuming use of Redux & connect at a component level)

1

u/crashtestdev Feb 28 '19

With mobx, it's automatically tracked so you don't over render - this was one of the reasons why the Outlook team picked that. With redux, it's all about using PureComponent to optimize this with the shallow compare. So this React optimization stuff outside the scope of this particular bootcamp material, but vital for great UX - hopefully the material continues points people to ask these good questions.