Documentos de Académico
Documentos de Profesional
Documentos de Cultura
"/img/social/twitter.jpg"];
"/img/social/twitter1.jpg"];
render(){
alt="Redes"/>
));
return(
<div className="divsocial">
{imagenes}
</div>
};
useEffect(() => {
// Iniciar el parpadeo
const parpadeoInterval = setInterval(() => {
setColor(`rgb(${r},${g},${b})`);
}, 1000);
}, []);
return (
<div>
ReactJS
</h1>
</div>
);
};
constructor(props){
super(props);
this.state={
fecha:f.getDate()+"/"+(f.getMonth()+1)+"/"+f.getFullYear()
};
};
state={
fecha:null,
hora:null
};
render(){
f=new Date();
let h=f.getHours();
hora: h+":"+m+":"+s
}), 1000);
return(
<div>
</div>
};
function Formulario() {}
event.preventDefault();
if(!/^u\d{5}$/.test(usuario)){
return
if(!/^(?=.*\d)(?=.*[A-Z])(?=.*[@$*]).{10}$/.test(contraseña)) {
'return';
return;
return;
if (!/\S+@\S+\.\S+/.test(correo)){
if (!tos) {
return;
alert('Gracias.');
setRegistrado(true); };
return (
<><div className="container">
<label
htmlFor="iusuario">Usuario</label>
<label
htmlFor="iusuario">Usuario</label>
<input
type="text"
className="form-control"
id="iusuario"
name="usuario"
placeholder="Ingrese usuario"
/></div><div className="form-group">
<label
htmlFor="icontraseña">Contraseña</label>
<input
type="text"
className="form-
control"
id="icontraseña"
name="contraseña"
</div><div className="form-group">
<label
htmlFor="icontrasenaV">Repita contraseña</label>
<input
type="text"
className="form-
control"
id="icontrasenaV"
name="contraseñaV"
</div><div className="form-group">
<label htmlFor="itipo">Tipo de
documento</label>
<select
className="form-
control"
id="itipo"
name="tipos"
value={tipos}
onChange={(e) =>
setTipos(e.target.value)}
>
<option
value="1">DNI</option>
<option
value="2">CE</option>
</select>
</div><div className="form-group">
<label
htmlFor="idni">DNI</label>
<input
type="text"
className="form-
control"
id="idni"
name="dni"
</div><div className="form-group">
<label
htmlFor="icorreo">Correo</label>
<input
type="text"
className="form-
control"
id="icorreo"
name="icorreo"
</div><div className="form-group">
<label
htmlFor="itelefono">Teléfono</label>
<input
type="text"
className="form-
control"
id="itelefono"
name="telefono"
placeholder="Ingrese teléfono (7 a 9 dígitos)" />
</div><div className="form-check">
<input type="checkbox"
className="form-check-input"
id="itos"
name="tos" />
<label htmlFor="itos"
className="form-check-label">
Acepto Terminos y
condiciones del servicio?
</label>
</div><button type="submit"
className="btn btn-primary">
Registrar
</button></>
);