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.82k stars 983 forks source link

Need to update for react 18^ #881

Open limonsafayet opened 1 month ago

limonsafayet commented 1 month ago

The error you're encountering is due to a version mismatch between react and react-sortable-hoc in your project. The version of react-sortable-hoc requires react version ^16.3.0 || ^17.0.0, but your project is using react@18.3.1, which causes a conflict.

muneeb71999 commented 1 month ago

Hi, @limonsafayet

I have created this repo and add instructions on how to set it up for your project. You can follow these and let me know if they work. I tried it with my project and it was working.

I am using it with Vite not sure about other bundling tools because I haven't tested it with other.

https://github.com/muneeb71999/react-sortable-hoc-v18

Thanks.