MCPcopy
hub / github.com/bvaughn/react-window / Example

Function Example

src/routes/list/examples/Images.tsx:12–25  ·  view source on GitHub ↗
({ images }: { images: string[] })

Source from the content-addressed store, hash-verified

10import { List, useDynamicRowHeight } from "react-window";
11
12function Example({ images }: { images: string[] }) {
13 const rowHeight = useDynamicRowHeight({
14 defaultRowHeight: 250
15 });
16
17 return (
18 <List<RowProps>
19 rowComponent={RowComponent}
20 rowCount={images.length}
21 rowHeight={rowHeight}
22 rowProps={{ images }}
23 />
24 );
25}
26
27// <end>
28

Callers

nothing calls this directly

Calls 1

useDynamicRowHeightFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…