bevacqua / react-dragula

:ok_hand: Drag and drop so simple it hurts
http://bevacqua.github.io/react-dragula
MIT License
994 stars 77 forks source link

React documentation #20

Open NIZVA opened 8 years ago

NIZVA commented 8 years ago

Why Dragula doesn't have a complete documentation for React?

patrikniebur commented 7 years ago

It does, initialisation is documented here and the rest can be easily found here -> https://github.com/bevacqua/dragula

gkrinc commented 6 years ago

I think the point @NIZVA is trying to make is that there's no documentation or examples of how to use react-dragula in a react application. In react the order of items in a list would typically be managed in state (or a store if using redux). Each item would have a property to provide sorting context, a weight or priority for example. Using the dragend event handler, the order property of the items in state should be updated, which would trigger a re-render in the new order.

I love open source, but it is frustrating when open source is provided without complete documentation or working examples. dragula is well documented, react-dragula not so much.

evolutionharsh commented 5 years ago

Not found proper documentation for react-dragula to run the react based application using react-dragula module.From where we can find same.