score:3

Accepted answer
return (
  <div>
   {data.map(item => <ContentData info={item} />)}
  </div>
);

score:2

return
  <div>
    {data.map(function(dataItem)          // Provide dataItem as parameter to function
      {
        <ContentData info={dataItem} />   // Render 1 ContentData child per data item
      })
    }
  </div>

Related Query

More Query from same tag