Strangely, I have <Avatar>
that works with single object parse using .map
<Flex>
<div></div>
{studentsjson.map((thr) => (
<Avatar color="red" key={thr.id} component={Link} to="/complete">
{thr.Name}
</Avatar>
))}
</Flex>
However, below does not work
{
teacher.map((thr) =>
thr.students.map((stu) => {
<Avatar color="red" key={stu.id} component={Link} to="/complete">
{stu.studentName}
</Avatar>;
})
)
}