React | Lists and Keys | Question 1

Last Updated :
Discuss
Comments

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

Share your thoughts in the comments