From the course: Master React 19 and Next.js 16 with Hands-On Projects and Real-World Applications

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

React virtualization

React virtualization

Rendering thousands of DOM elements at once can severely impact performance. This session introduces you React Virtualization. You'll learn how to implement virtualized lists, drastically improving the performance of your React applications when dealing with large datasets. React virtualization is a technique to efficiently render large lists by only rendering the visible rows and a small buffer, overscan, instead of the entire list. When you try to render very large lists, for example 10,000 Lee elements, the DOM becomes very heavy and scrolling can lag. React Virtualization solves this by only rendering the visible rows plus a small buffer, often called overscan. Rows outside the viewport aren't rendered, which drastically reduces DOM nodes and memory usage. The result? Smooth scrolling and much better performance, even with huge lists. Popular libraries that implement virtualization include React Window and React Virtualized, which make it easy to apply this technique. Let's…

Contents