-
-
Save anonymous/c967df003f8a5926b260388b302bbee9 to your computer and use it in GitHub Desktop.
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
const TableRow = ({obj, onDelete}) => | |
<tr> | |
<td>{obj.id}</td> | |
<td>{obj.title}</td> | |
<td>{obj.price}</td> | |
<td> | |
<Link to={"edit/"+obj.id} className="btn btn-primary">Edit</Link> | |
</td> | |
<td> | |
<button onClick={onDelete}>Delete</button> | |
</td> | |
</tr> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment