In React the map() function is most commonly used for rendering a list of data to the DOM.

What exactly is map() function?

.map() function lets you manipulate the items in an array by iterating and accessing individual items, so to use it you have to attach .map() function to an array you want to iterate over.