Skip to content

Instantly share code, notes, and snippets.

/TableRow.jsx Secret
Created Oct 8, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.