I'm trying to create a treeview navigation using React and running into some issues.
my JSON looks like this: [ this is coming from a webAPI and unable to change the format of it]
{
"make" : "BMW",
"year" : "2020",
"type" : "used"
},
{
"make" : "BMW",
"year" : "2022",
"type" : "new"
},
{
"make" : "lexus",
"year" : "2022",
"type" : "used"
},
{
"make" : "lexus",
"year" : "2022",
"type" : "used"
}
I want the nav to look like this
BMW
2020
2022
Lexus
2022
2022
Will one of the treeview components out there work for this JSON format?
Top comments (0)