Last active
March 15, 2019 13:57
-
-
Save erksch/33603145bda63f0824a7b03f161fc495 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Orders.js | |
return ( | |
... | |
<OrdersList | |
orders={orders} | |
onRemoveItem={this.handleRemove} | |
/> | |
... | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrdersList.js | |
return ( | |
... | |
{orders.map(order => ( | |
<OrdersListItem | |
key={order.id} | |
order={order} | |
onRemove={props.onRemoveItem} | |
/> | |
))} | |
... | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OrdersListItem.js | |
return ( | |
... | |
<OrderDeleteButton | |
order={order} | |
onClick={props.onRemove} | |
/> | |
... | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment