React·100 questions

How to avoid re-rendering a large list (1000+ items)?

Answer
Use virtualization (react-window/react-virtual).
Keep elements simple.
Stabilize the key.
Do not perform heavy computations during rendering.
Divide the list into memoized elements.
Was this answer helpful?

More questions in this topic

Related questions from other topics