clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.77k stars 978 forks source link

type error warning JSX component in typescript #851

Open dzpt opened 2 years ago

dzpt commented 2 years ago

i caught an error using hoc component like SortableContainer or SortableElement cannot be used as a JSX component.

├── @types/react-dom@17.0.17
├── @types/react@17.0.48
├── @vitejs/plugin-react@1.3.2
├── react-dom@17.0.2
├── react-sortable-hoc@2.0.0
├── react@17.0.2
└── vite@2.9.15