React performance tip: You probably don't need to optimize React's...


React performance tip:

You probably don't need to optimize React's performance on your own.

I've been working in React for nearly a decade. I rarely need to do any performance optimizations.

React is typically plenty fast by default.
If performance is a problem, it's a sign I did one of 3 things:

🚫 I put state too high (so I move it down)
🚫 I'm changing state many times/sec (so I throttle changes)
🚫 I'm rendering 1000's of elements (so I decompose, add pagination, sort, filter, etc)

View original on X