I would like to make something like this, but with react-window. Is this possible?
Code:
<FixedSizeList
height={150}
itemCount={1000}
itemSize={35}
width={300}
>
<TransitionGroup>
{someList.map((someData) => <Collapse key={someData.id}>
<ListItemButton>
some data
</ListItemButton>
</Collapse>)}
</TransitionGroup>
</FixedSizeList>
Error:
No overload matches this call.
Overload 1 of 2, '(props: FixedSizeListProps<any> | Readonly<FixedSizeListProps<any>>): FixedSizeList<any>', gave the following error.
Type 'Element' is not assignable to type 'ComponentType<ListChildComponentProps<any>>'.
Overload 2 of 2, '(props: FixedSizeListProps<any>, context: any): FixedSizeList<any>', gave the following error.
Type 'Element' is not assignable to type 'ComponentType<ListChildComponentProps<any>>'.