Convert IVR Tree to React Hooks

I have to convert IVR tree code in React and is there any example to convert it to react Hooks. Please let me know.

We don’t translate all our samples for each different framework, there are far too many for that. Here’s an example of gojs-react in a project using React hooks, though: gojs-react-samples/gojs-react-palette-hooks-js at main · NorthwoodsSoftware/gojs-react-samples · GitHub

I saw the above link you sent but that is not a IVR TREE example. Do you have the IVR Tree example in React?

As I said, no. We have hundreds of samples, so we can’t translate each to every different framework. You can adapt the sample above with code from IVR Tree.

I have tried to convert IVR Tree from HTML to React and able to render. However, I have one clarification for the IVR Tree we have both nodeDataArray and linkDataArray. Is it possible to render the IVR tree without linkDataArray and I have nodeDataArray as below mentioned. Please let me know.

{
“title” : “My org hierarchy”,
“data” : [
{
“id” : 1,
“level” : 1,
“parent” : 0,
“title” : “Holding Company”
},
{
“id” : 2,
“level” : 2,
“parent” : 1,
“title” : “Company-X”
},
{
“id” : 3,
“level” : 2,
“parent” : 1,
“title” : “Company-Y”
},
{
“id” : 4,
“level” : 3,
“parent” : 2,
“title” : “Vertical-1”
},
{
“id” : 5,
“level” : 3,
“parent” : 2,
“title” : “Vertical-2”
},
{
“id” : 6,
“level” : 4,
“parent” : 4,
“title” : “Sales-1”
},
{
“id” : 7,
“level” : 4,
“parent” : 4,
“title” : “Engineering-1”
},
{
“id” : 8,
“level” : 4,
“parent” : 4,
“title” : “Support-1”
},
{
“id” : 9,
“level” : 4,
“parent” : 5,
“title” : “Sales-2”
},
{
“id” : 10,
“level” : 4,
“parent” : 5,
“title” : “Engineering-2”
},
{
“id” : 11,
“level” : 5,
“parent” : 7,
“title” : “Team-A”
},
{
“id” : 12,
“level” : 5,
“parent” : 7,
“title” : “Team-B”
}
]
}

Yes – use a TreeModel instead of a GraphLinksModel.
Examples:
Get Started with GoJS
Parse Tree
GoJS Using Models -- Northwoods Software