react-arborist icon indicating copy to clipboard operation
react-arborist copied to clipboard

Passing Component for Node through Tree , passing Node as Component

Open ekafe opened this issue 2 years ago • 2 comments
trafficstars

Hai, I want to pass the react component to Node Element From Tree, so i can dynamically change the node element. We are passing something like <Tree className="Tree" initialData={data}> {Node} </Tree>

Is there any way to pass the Node like this <Tree className="Tree" initialData={data}> <Node val=2 {...props} }/> </Tree>

Is this option available?

ekafe avatar Jul 14 '23 09:07 ekafe