so am making a little web Aplication and this is my first time trying to use firebase and React Js at the same time so my problem is am trying to make a document in fireStore every time a new User Signs up
// this is my SignUp Function
async function signUp(email, password,) {
await createUserWithEmailAndPassword(auth, email, password);
}
/*and Im calling in it my component and as onSubmit Function and passing it the email and password
and this is where things got me a little tricky because wheni tried to pass my CreateDocument Function as a callBack it throws me an error
and this is my CreateDocument
function const creatProfileDocument = (currentuser) => {
setDoc(doc(db, "users", currentuser.uid), {
email: currentuser.email,
age: false,
name: "",
})
};*/
i Really hope someone can help me here