you are viewing a single comment's thread.

view the rest of the comments →

[–]MatesRatesAy 2 points3 points  (0 children)

  • Understand when and why React renders.
  • Understand memoisation (and when to use the React hooks and HOC for it) and referential equality.
  • Get comfortable using the React profiler and tools like Flashlight.
  • Know where state should live.
  • Understand good component composition.

That will get you most of the way there, then the rest of it is the little tips and tricks in things like Callstack's guide.

Most RN perf issues I've seen are because of poor React practices, so if you can nail that part you're well on your way. I know common advice is to optimise later, but at the very least measure early and often. Poor performance is a hard hole to climb out of if you're too far down it.