How to create a new user sign up page in Firebase + ReactJS that checks for both an existing username and an existing email

Creating a Firebase + React app that checks for an existing username and an email

One of the challenges with Firebase is to work with its own APIs that need some learning curve. Its documentation is excellent, but a new developer has to spend sometime to learn Firebase’s own way of doing things.