I am not sure if I need to use map function inside my render method to iterate and display the data and how will it work along.Can someone let me know if I am doing it right or is there any better way of doing it. Is there a way I can render this response to accommodate with treeview-react-bootstrap? If you see the response, I would like my key value to be printed in a tree structure. React D3 Tree is a React component that offers a way of building complex tree types for example, family trees and binary trees. The api response I have is "array of objects" and it is only in one level JSON format. I am using dummy data for now but this is the format that I want my data to be displayed. Import TreeView from 'treeview-react-bootstrap' ![]() ![]() Basics To bind the TreeView to data: Add children items to an item with an items field. I am using tree view-react-bootstrap for that. The TreeView enables you to work with various types of data. In my react application, I am implementing a tree view structure to display the api response in more readable format. Click the accordions below to expand/collapse the accordion content.
0 Comments
Leave a Reply. |