cross-posted from: https://programming.dev/post/9577952
Firereact is hooks, component and utilities library for Firebase and React.
Features
- Very lightweight,
when unpacked, when minified, when minified+gzipped
- Supports Auth, Firestore, Functions, Providers and Storage.
- Provides hooks such as
useUser
for Auth or useDocument
for Firestore, which can listen to realtime changes as well
- Provides custom components such as
<FirestoreDocument />
or <StorageDownloadLink />
to keep the logic simple and/or avoid unnecessary rerendering
- Provides
Provider
s such as FirebaseSuiteProvider
, FirebaseAuthProvider
or FirestoreProvider
to access Firebase service instances anywhere in the component tree without relying on global variables or prop-drilling
- Comprehensive documentation