Virtualization in React
summary
Shows a demo of a virtualized list that renders only visible rows using react-window and contrasts it with full rendering of 5000 items, where DOM elements are continually removed and inserted as the user scrolls. Claims large CPU and memory savings but reports visible jank when each cell does heavy computation. Advises precomputing data, keeping each cell’s DOM shallow, and weighing accessibility and searchability tradeoffs before applying virtualization.
AI-written summary · about
