What is the purpose of the map() function in React?
To map the state of a component to the DOM
To convert a list of elements into an array
To create a new array by applying a function to each element of an array
To filter elements based on a condition
This question is part of this quiz :
Lists and Keys in React