Loading tutorials
useState, useRef and useEffect, and basic CSS positioning and overflow scrolling. It also assumes you know that scrolling fires scroll events on an element. The previous chapters showed why a list of thousands of rows is slow and how6 min readuseState, basic CSS positioning, and how the browser fires scroll events. You have seen the idea of windowing: render only the rows near the viewport. Here you work out which rows those are. The calculation is small, but most off-by-one e5 min readuseState, basic CSS positioning (relative, absolute), and how scroll events work. You will build a virtual list by hand. It handles rows that all have the same height, and it renders only the rows near the viewport.6 min readuseState and useRef, and understand position: relative and position: absolute. It also assumes you know that the browser fires scroll events on an element with overflow: auto. You should have the fixed-height virtual list f6 min readuseRef, useState, and CSS positioning (relative and absolute). Here you replace the hand-written scroll math with TanStack Virtual and learn which options matter and which mist5 min readuseRef and useEffect, and how @tanstack/react-virtual replaces the5 min readkey, how useState ties state to a component instance, and how React.memo skips re-renders. It also assumes you have built the fixed-height list and used useVirtualizer from the earlier chapters. Virtualization changes two things y5 min readuseRef, useEffect, and the useVirtualizer hook from TanStack Virtual.5 min readrole, aria-label) and how keyboard focus works in the browser.5 min readuseVirtualizer from TanStack Virtual in earlier chapters. You should also be comfortable with useState, useRef, and useEffect.5 min readscrollTop. You should also be comfortable with useVirtualizer from TanStack Virtual, includi5 min readuseState, useRef, and useEffect. It also assumes you know basic CSS positioning and how scroll events work. You have already built a fixed-height virtual list by hand and used TanStack Virtual. Here you learn when those tools ar6 min read