import React from 'react'; import { FixedSizeList } from 'react-window'; import AutoSizer from 'react-virtualized-auto-sizer'; interface RenderPropTypes { index: number; style: any; } interface PropTypes { itemSize: number; itemCount: number; renderItem: React.FC; } interface Size { height: number; width: number; } const SmartList: React.FC = ({ itemSize, itemCount, renderItem }) => { const ResizedList: React.FC = ({ width, height}) => ( {renderItem} ); return (
); }; export default SmartList;