Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.
- array to tree
- list to tree
- View more
lightweight simple react hook nested tree view,children nodes are placed inside their parent node in DOM. The parent node has an outlet to keep all the children nodes.
React HOC and helper for complex layouts. When layouts get complex and you have to write a lot of jsx over and over again, this approach may help reuse layouts in a readable way.