MCPcopy Create free account
hub / github.com/bvaughn/react-window / Example

Function Example

lib/components/list/List.test.tsx:1256–1271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1254 let onRowsRendered: ReturnType<typeof vi.fn>;
1255
1256 function Example() {
1257 const rowHeight = useDynamicRowHeight({
1258 defaultRowHeight: 25
1259 });
1260 return (
1261 <List
1262 defaultHeight={100}
1263 overscanCount={0}
1264 onRowsRendered={onRowsRendered}
1265 rowCount={10}
1266 rowComponent={RowComponent}
1267 rowHeight={rowHeight}
1268 rowProps={EMPTY_OBJECT}
1269 />
1270 );
1271 }
1272
1273 function setMockRowHeights(
1274 indexToHeight: Map<number, number>,

Callers

nothing calls this directly

Calls 1

useDynamicRowHeightFunction · 0.90

Tested by

no test coverage detected