Bereaksi Loop Melalui Array
this.items = this.state.cart.map((item, key) => <li key={item.id}>{item.name}</li>);
Tired Trout
this.items = this.state.cart.map((item, key) => <li key={item.id}>{item.name}</li>);
<tbody>
{items.map(item => <ObjectRow key={item.id} name={item.name} />)}
</tbody>