How will I do this kind of table in react? In each projects, there are employees and they have their corresponding positions. But in the project name (Column), on the second row, the 'Project A' should not be displayed.
- Should not be like the second picture, where the 2nd and 3rd row still contains the project name. I want to exclude it and leave it blank.
Let say I sent a request from the server and it returned this json structure
[
{
"name": "Project A",
"employees": [
{
"emp_name": "Employee 1",
"emp_pos": "Position 1"
},
{
"emp_name": "Employee 2",
"emp_pos": "Position 2"
}
]
},
{
"name": "Project B",
"employees": [
{
"emp_name": "Employee 5",
"emp_pos": "Position 2"
},
{
"emp_name": "Employee 3",
"emp_pos": "Position 4"
}
]
}
]
I'm not sure, if the structure of my json file is correct.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…