DEV Community

Discussion on: React - how to create dynamic table

Collapse
 
wearypossum4770 profile image
Stephen Smith

How about this suggestion? It fixes the "bug" I introduced.

...
 students.sort((a,b) => a.id-b.id).map(({ id, name, age, favFruit }) => 
...
Enter fullscreen mode Exit fullscreen mode