-
-
Save parzibyte/2f07deec07d8646f4528065f736f78d3 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
render() { | |
if (this.state.eliminado) { | |
return null; | |
} | |
return ( | |
<tr> | |
<td>{this.props.videojuego.nombre}</td> | |
<td>{this.props.videojuego.precio}</td> | |
<td>{this.props.videojuego.calificacion}</td> | |
<td> | |
<Link to={`/videojuegos/editar/${this.props.videojuego.id}`} className="button is-info">Editar</Link> | |
</td> | |
<td> | |
<button onClick={this.eliminar} className="button is-danger">Eliminar</button> | |
</td> | |
</tr> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment