Open vladimirivanoviliev opened 8 years ago
Implement higher-order component that maps flat array of items to components. This higher-order component should expect the items hierarchy as flat array of objects. Example:
[{id:1, title: "some title", parentId: null}, {id:2, title: "other title", parentId: 1}]
This component should support nested components / html inside the content and title properties of the items above.
content
title
Example implementation is available here: DataBoundPanelBar
Implement higher-order component that maps flat array of items to components. This higher-order component should expect the items hierarchy as flat array of objects. Example:
[{id:1, title: "some title", parentId: null}, {id:2, title: "other title", parentId: 1}]
This component should support nested components / html inside the
content
andtitle
properties of the items above.Example implementation is available here: DataBoundPanelBar