Let’s say we have this UI structure. The navigation is dynamic. The Sidebar receives the data from the server and renders navigation based on this data. We need to map this data to our components (NavList, NavItem, SubNavList, SubNavItem). One way of doing this is to let the components render each other and pass the data along the way.
Full article