Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2020 22:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
render() {
return (
<div className="column is-one-third">
<h1 className="is-size-3">Agregar videojuego</h1>
<form className="field" onSubmit={this.manejarEnvioDeFormulario}>
<div className="form-group">
<label className="label" htmlFor="nombre">Nombre:</label>
<input autoFocus required placeholder="Nombre" type="text" id="nombre" onChange={this.manejarCambio} value={this.state.videojuego.nombre} className="input" />
<div className="form-group">
<label className="label" htmlFor="precio">Precio:</label>
<input required placeholder="Precio" type="number" id="precio" onChange={this.manejarCambio} value={this.state.videojuego.precio} className="input" />
<div className="form-group">
<label className="label" htmlFor="calificacion">Calificación:</label>
<input required placeholder="Calificación" type="number" id="calificacion" onChange={this.manejarCambio} value={this.state.videojuego.calificacion} className="input" />
<div className="form-group">
<button className="button is-success mt-2">Guardar</button>
<Link to="/videojuegos/ver" className="button is-primary mt-2">Volver</Link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment