()
| 11 | // const list = [{ name: "Brian Vaughn", random: "Software engineer" }, ...]; |
| 12 | |
| 13 | function Example() { |
| 14 | return ( |
| 15 | <AutoSizer |
| 16 | renderProp={({ width }) => |
| 17 | width !== undefined ? ( |
| 18 | <Table |
| 19 | headerHeight={30} |
| 20 | height={250} |
| 21 | rowCount={list.length} |
| 22 | rowGetter={({ index }) => list[index]} |
| 23 | rowHeight={30} |
| 24 | width={width} |
| 25 | > |
| 26 | <Column dataKey="name" label="Name" width={150} /> |
| 27 | <Column |
| 28 | dataKey="random" |
| 29 | flexGrow={1} |
| 30 | label="Description" |
| 31 | width={200} |
| 32 | /> |
| 33 | </Table> |
| 34 | ) : null |
| 35 | } |
| 36 | /> |
| 37 | ); |
| 38 | } |
| 39 | |
| 40 | // <end> |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected