This is an error in the App.js file present in the src of the main project file
This is the code snippet:
15 | const [firebaseInitialized, setFirebaseInitialized] = useState(false);
16 |
17 | useEffect(() => {
> 18 | firebase.isInitialized().then(val => {
| ^ 19 | setFirebaseInitialized(val);
20 | })
21 |
Error in the following code is:
TypeError: Cannot read property 'isInitialized' of undefined
What shall I do to solve this error?