Libraries and tutorials for integrating Firebase with React
I am collecting a list of tutorials, libraries, and issues related to using Firebase with React.
- Next.js example with Firebase authentication
- Next.js example with Firebase authentication and serverless functions
- Next.js and Firebase starter
Probably the best option if you want to avoid adding the huge Firebase dependency
Alternatively, you could use react-firebase-hooks
, firebase
, and a couple of Firebase Cloud Functions. Here are some links about them.
- Can Cloud Functions for Firebase execute on user login?
- Firebase Authentication triggers
- https://stackoverflow.com/questions/47726099/how-to-write-data-to-firestore-through-firebase-functions
- Cloud Functions for Firebase Sample Library
- Authentication in React Applications
- Firestore Data Modeling - Five Cool Techniques
- Role Based Authorization With Firestore
- Model Relational Data in Firestore NoSQL
- How to Connect Firebase Users to their Data - 3 Methods
- Import Firebase this way:
// This import loads the firebase namespace.
import firebase from 'firebase/app';
// These imports load individual services into the firebase namespace.
import 'firebase/auth';
import 'firebase/database';
Yes.
Source: Stack Overflow