How to add firebase to React app

Hi - I want to add a Firebase DB to my existing React app.

The official documentation is a bit outdated: https://firebase.googleblog.com/2014/05/using-firebase-with-reactjs.html

And all the online tutorials start with creating the Firebase project and so is confusing me a little.

Does anyone know of a good resource that can walk me through adding Firebase to existing React app?

Many thanks!

Hey there,

there is a new documentation:
https://firebase.google.com/docs/web/setup

On Step 3, you have to choose your method.
If you use React from NPM, you have to choose Using module bundlers in the tab bar.

1 Like