Open NIZVA opened 8 years ago
It does, initialisation is documented here and the rest can be easily found here -> https://github.com/bevacqua/dragula
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.
Not found proper documentation for react-dragula to run the react based application using react-dragula module.From where we can find same.
Why Dragula doesn't have a complete documentation for React?