How to display data from Flask in React App?

Solution 1
{myData.map((item) => (
  
    {item.map((d) => (
      {d}
    ))}
  
))}
Solution 2

    myData.map((item, idx) => (
    
First Name Last Name Gender
{item.firstName} {item.lastName} {item.genre}