Displaying comma separated elements using map function from Array of Objects – ReactJS

lets take an example of the following Array

lets use map function to display names of class-5 in the same row.

if we use .toString() to the map function, comma separated names will display.


Discover more from Learners Store

Subscribe to get the latest posts sent to your email.

Leave a comment