Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
¿Cómo registrar nuevos usuarios usando Firebase V9 y React?

Mi objetivo es registrar nuevos usuarios con correo electrónico y contraseñas usando firebase v9. He estado leyendo su documentación y he llegado hasta aquí. Necesito ayuda con la función createUserWithEmailAndPassword.

 import React, {useState} from 'react'; import { getAuth, createUserWithEmailAndPassword } from "firebase/auth"; function SignUp() { const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const auth = getAuth(); createUserWithEmailAndPassword(auth, email, password) .then((userCredential) => { // Signed in const user = userCredential.user; ** // ... LOST HERE ... HOW DO I CODE THIS PART // ** }) .catch((error) => { const errorCode = error.code; const errorMessage = error.message; ** // .. LOST HERE ... HOW DO I CODE THIS PART // ** }); return ( <div className="container"> <div className="sign-up"> <h1>SignUp</h1> <form> <label>Email</label> <input type="email" name="email" placeholder="email" value={email} onChange={(e) => setEmail(e.target.value)} /> <label>Password</label> <input type="password" name="password" placeholder="Password" value={password} onChange = {(e) => setPassword(e.target.value)} /> <button type="submit">Sign Up</button> </form> </div> </div> ) };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!