({ data }: { data: string[] })
| 202 | return <div style={style}>{data[index]}</div>; |
| 203 | } |
| 204 | function Example({ data }: { data: string[] }) { |
| 205 | rowHeight = useDynamicRowHeight({ defaultRowHeight: 50 }); |
| 206 | return ( |
| 207 | <List |
| 208 | rowComponent={Row} |
| 209 | rowProps={{ data }} |
| 210 | rowCount={2} |
| 211 | rowHeight={rowHeight} |
| 212 | rowKey={rowKey} |
| 213 | style={{ height: 100 }} |
| 214 | /> |
| 215 | ); |
| 216 | } |
| 217 | const { container, rerender } = render(<Example data={["a", "b"]} />); |
| 218 | rerender(<Example data={["b", "a"]} />); |
| 219 | const firstRow = container.firstElementChild! |
nothing calls this directly
no test coverage detected