import { List } from 'react-virtualized';
const list = Array(100).fill("react-virtualized");
function rowRenderer({
key, // Unique key within array of rows
index, // Index of row within collection
style, // Style object to be applied to row (to position it)
isScrolling,
isVisible,
}: any) {
return (
<div key={key} style={style}>
{list[index]}
</div>
);
}
export default function index() {
return (
<List
width={300}
height={300}
rowCount={list.length}
rowHeight={20}
rowRenderer={rowRenderer}
/>
)
}