React performance problems are rare
React performance problems are rare.
So, if I have a performance problem, I typically did one of 4 things:
🚫 My component is too big (so I split it)
🚫 I put state too high (so I move it down)
🚫 I'm changing state many times/sec (so I throttle state changes)
🚫 I'm rendering 1000's of elements (so I add pagination, sort, search, filter, etc)
You probably don't need this, but here's a list of 42+ ways to make React faster:
https://github.com/coryhouse/reactjsconsulting/issues/77