#In the Tree component label is a React.Node, not an object
6 messages · Page 1 of 1 (latest)
I meant that since it's a label, why do we need to make a restriction on React.Node?
Here is my case, on the server I want to pass in label type and name. Why can't I put anything in the label?
Here's an example of how others do it - https://github.com/minop1205/react-dnd-treeview?tab=readme-ov-file#optional-data.
Object cannot be used as jsx element
I know it's not an object, why limit the label, make it any.
I want to pass custom properties to render each node