Trees

Find the source code here.

Overview

Tree component is a nested recursive component. It means that a component contains children which have same structure as itself.

To see what we are saying, let's look at example below.

P.S: Note aside, it's important to understand that tree is a functional feature. It's up to you to design it your own way.