ommit return keyword

This commit is contained in:
Stefan Feješ
2018-10-13 16:48:53 +02:00
parent 6b55493290
commit 43ce691869

View File

@ -18,13 +18,13 @@ function MappedTable(props) {
) : null}
</thead>
<tbody>
{props.data.map((v, i) => {
return (
{props.data.map((v, i) =>
(
<tr obj={v} key={v.id ? v.id : i}>
<td>v.name</td>
</tr>
);
})}
)}
</tbody>
</table>
);