write a function that that handle signup and write a userinfo to Firestore?
Recently, I am working on developing app. And when a new user sign up, I want to create a record in the database. For now I only know the use of createUserWithEmailAndPassword, but how can I also create a record in Firestore.