the result is only 1 student display, I just want to display all student
const [getNoStudent, setNoStudent]= React.useState(null);
useEffect(() ={
....
setNoStudent(student.length) //lets say 6 is the total number of student
})
return (
...
{getNoStudent > 0 && (
<>
<SummaryTableRow
label="Student Name:"
value={getStudent && getStudent.fullname ? getStudent.fullname : ''}/>
</>
)}
)
the result is only 1 student display, I just want to display all student