({ lorem }: { lorem: string[] })
| 5 | import { RowComponent } from "./ListRowDynamicRowHeights"; |
| 6 | |
| 7 | function 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…