Created
March 15, 2019 11:13
-
-
Save erksch/c925ae4ea8c761cc3e4d110f0d6e7b2b to your computer and use it in GitHub Desktop.
OrdersListItem component with OrderDeleteButton
This file contains 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 | |
import React from 'react'; | |
import OrderDeleteButton from './OrderDeleteButton'; | |
function OrdersListItem(props) { | |
const { order } = props; | |
return ( | |
<li> | |
<h2>{order.title}</h2> | |
<p>{order.description}</p> | |
<OrderDeleteButton ... /> | |
</li> | |
); | |
} | |
export default OrdersListItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment