react-reorder
react-reorder copied to clipboard
Another complete re-write in TypeScript, with hooks, React 16-17 support, and more
- TypeScript
- Function components
- Hooks (expose hooks?)
- React 16-17 support (#101)
- Drop areas, drag areas
- Start/stop drag callbacks (#85 / #100 / #103)
- Prevent parent styles affecting behaviour (#84)
- Accessibility (keyboard/click to reorder)
- Portals?
- React Native support?
I haven't forgotten about this library, I've just been very busy with other things. 😊
@JakeSidSmith Can I work on this?
If you had drag/drop areas you could probably replace react-dnd which is buggy AF. But I just came for the reordering
@arpitBhalla I haven't exactly worked out how the API is going to be yet. Started writing it a few times and then changed my mind because it wasn't flexible enough. It'll probably be a while before I decide on an API I'm happy with, but happy for you to post suggestions in here. 😊
Updated React Hooks support here https://github.com/JakeSidSmith/react-reorder/issues/101#issuecomment-847201025. Cheers 😊
Preview: https://media.giphy.com/media/BZnpNKIWXvz55j4Z31/giphy.gif