Q. What is the purpose of the map method when rendering lists in React?