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

not able to use with react@18.0.2 #870

Open ShubhamRavani opened 1 year ago

ShubhamRavani commented 1 year ago

I tried to install react-sortable-hoc but it's just giving me an error for react@18.0.2

remitoffoli commented 1 year ago

Same problem here.

It took me a moment to notice but, as the readme points out, this lib is "no longer actively maintained".

Clauderic is now focusing on DnD-Kit. You can find the Sortable example here: https://docs.dndkit.com/presets/sortable 👍

Edit: I have to admit that after trying to use it in Typescript for 2 hours, the new one is overly complicated and the learning curve is steep due to unclear examples. 😔

remitoffoli commented 1 year ago

For anyone ending up here like me today. I manage to get something working and create a generic component for vertical sorting list, with and easy-to-use component API. Enjoy: https://codesandbox.io/s/angry-hamilton-qixv4m?file=/src/App.tsx

Mati365 commented 1 year ago

@remitoffoli thanks!