lundi 23 avril 2018

Sortable Interface for different types of components react dnd

I was going through react dnd's documentation on creating a sortable example where I found a working example at http://react-dnd.github.io/react-dnd/examples-sortable-simple.html. I have use case similar to this where my list contains items of different types.

Is adding a common wrapper component over each type of list item, considered a good design option? This will help me retain the present architecture and not mess up things.

Something on below line

Aucun commentaire:

Enregistrer un commentaire