Describe the bug
Please add children as explicit property for <ReactSortable>.
Using react-sortable together with @types/react at version ^18 (but React@17) throws:
Type error: Type '{ children: Element[]; list: ItemInterface[]; setList: Dispatch<SetStateAction<ItemInterface[]>>; animation: number; delay: number; onSort: () => void; disabled: boolean; group: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactSortable<ItemInterface>> & Pick<Readonly<ReactSortableProps<ItemInterface>>, never> & Partial<...> & Partial<...>'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactSortable<ItemInterface>> & Pick<Readonly<ReactSortableProps<ItemInterface>>, never> & Partial<...> & Partial<...>'.
Describe the bug Please add
children
as explicit property for<ReactSortable>
. Using react-sortable together with @types/react at version ^18 (but React@17) throws:Reason here: https://solverfox.dev/writing/no-implicit-children/
Expected behavior
children
added toReactSortableProps
/ no compile errorInformation react-sortable = ^6.1.1 react = ^17.0.2