minop1205 / react-dnd-treeview

A draggable / droppable React-based treeview component. You can use render props to create each node freely.
MIT License
530 stars 71 forks source link

Can't we use hierarchical structure json data instead of flattern? #142

Closed jeevasusej closed 2 years ago

jeevasusej commented 2 years ago

Can't we use hierarchical structure json data as below one instead of flattern?

image

minop1205 commented 2 years ago

@jeevasusej Since the structure of the data is directly related to the implementation of the component, data structures other than those described in the README cannot be used.

Before passing data to a component, please perform some kind of conversion to make it flat before use.