i want to map and disply data like below how to achieve this in react ,javascipt
................,
"report": Object {
"Title 1": Array [
Object {
"result": "121",
"title": "QWERTY",
},
Object {
"result": "21",
"title": "YUIO",
},
],
"Title 2": Array [
Object {
"result": "12",
"title": "ERTY",
},
Object {
"result": "121",
"title": "ABCD",
},
],
"Title 3": Array [
Object {
"result": "2121",
"title": "XYZ",
},
],
},
".......",
How to map this data like this
Title 1 | |
---|---|
QWERTY | 121 |
YUIO | 21 |
Title 2 | |
---|---|
ERTY | 12 |
ABCD | 121 |
Title 3 | |
---|---|
ERTY | 12 |
ABCD | 121 |
..etc
{Object.keys(report.report.report)}
gives only object titles