import * as React from 'react'; import List from '../src/List'; interface Item { id: number; height: number; } const MyItem: React.FC = ({ id, height }, ref) => { return ( {id} ); }; const ForwardMyItem = React.forwardRef(MyItem); const data: Item[] = []; for (let i = 0; i < 100; i += 1) { data.push({ id: i, height: 30 + (i % 2 ? 70 : 0), }); } const Demo = () => { return (

Dynamic Height

{item => }
); }; export default Demo;