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

Function Example

src/routes/list/examples/ListDynamicRowHeights.tsx:7–22  ·  view source on GitHub ↗
({ lorem }: { lorem: string[] })

Source from the content-addressed store, hash-verified

5import { RowComponent } from "./ListRowDynamicRowHeights";
6
7function Example({ lorem }: { lorem: string[] }) {
8 const listState = useListState(lorem);
9
10 const rowHeight = useDynamicRowHeight({
11 defaultRowHeight: 50
12 });
13
14 return (
15 <List
16 rowComponent={RowComponent}
17 rowCount={lorem.length}
18 rowHeight={rowHeight}
19 rowProps={{ listState }}
20 />
21 );
22}
23
24// <end>
25

Callers

nothing calls this directly

Calls 2

useListStateFunction · 0.85
useDynamicRowHeightFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…