Home > Enterprise >  how to create deep paths in a tree structure in react-router v6
how to create deep paths in a tree structure in react-router v6

Time:05-14

Here is a Edit how-to-create-deep-paths-in-a-tree-structure-in-react-router-v6

const tasks: Task[] = [
  {
    id: 1,
    name: "one",
    children: [
      {
        id: 3,
        name: "three",
        children: [
          {
            id: 5,
            name: "five",
            children: [{ id: 7, name: "seven", children: [] }]
          }
        ]
      }
    ]
  },
  {
    id: 2,
    name: "two",
    children: [
      { id: 4, name: "four", children: [{ id: 6, name: "six", children: [] }] }
    ]
  }
];

enter image description here

  • Related