What is the proper way of listing users email in React.
here’s my code but it gives me an error
{ usersList.map((item, i) =>
<tr key={i}>
<td>
{ item.emails[0].address }
</td>
<td className="negative">
<button className="ui mini green basic button" >
{ item.access }
</button>
</td>
<td >
<Time value={ item.createdAt } format="YYYY/MM/DD h:mm A" />
</td>
</tr>
)}
error shows TypeError: Cannot read property '0' of undefined