In a React application, I usually initialize firebase like this:
if (firebase.apps.length < 1) {
firebase.initializeApp(firebaseConfig);
// Initialize other firebase products here
}
This worked perfectly until I upgraded to v9 beta. How do I make it work for the new version?