
Description
React Firebase Hooks is a set of reusable React hooks that connect a React app to Firebase. The hooks cover authentication, Cloud Firestore, Cloud Functions, Cloud Messaging, Cloud Storage and the Realtime Database, so components can read and track Firebase data without wiring up each call by hand. The library takes its naming inspiration from RxFire, and the authors say the hook-based version is much simpler than the internal library they used before React hooks existed. The current documentation is for version 5, which requires Firebase v9 or higher. The installation section lists React 16.8.0 or later and Firebase v9.0.0 or later. Older documentation is linked for Firebase v8 and v9 users. The project notes that React Native Firebase is no longer as straightforward after the move to the v9 web library, and that it may be investigated later. Upgrading from version 4 to version 5 means following the release notes, which list the required changes. The package is installed with npm or yarn and assumes a module bundler such as Webpack or Browserify. The repository includes a LICENSE file.…
Highlights
- Hooks for Auth, Firestore, Functions, Messaging and Storage
- Realtime Database hooks included
- Requires Firebase v9 or higher for version 5
- Upgrade notes from version 4 to version 5
Ratings & Reviews
No ratings yet
Be the first to rate react-firebase-hooks.
People also visit
@tryvital/vital-link
React hooks and components for integrating with the Vital Link
react-firebase-hooks FAQ
What is React Firebase Hooks?
A library of reusable React hooks for working with Firebase services from React components.
Which Firebase services are covered?
Authentication, Cloud Firestore, Cloud Functions, Cloud Messaging, Cloud Storage and the Realtime Database, each with its own documentation page.
What versions are required?
The version 5 documentation requires Firebase v9 or higher. The installation section lists React 16.8.0 or later and Firebase v9.0.0 or later.
How do I install it?
The docs assume npm or yarn with a module bundler such as Webpack or Browserify, using CommonJS modules.
Does it work with React Native?
The docs say React Native Firebase support is no longer as straightforward after the v9 change, and that it may be investigated in a future release.
How do I upgrade from version 4?
Follow the release notes linked from the documentation, which list everything that must change for version 5.
Is it open source?
The repository has a LICENSE file, and the page links to it under the License heading.
What are the best react-firebase-hooks alternatives?
Popular alternatives to react-firebase-hooks include @tryvital/vital-link, @datepicker-react/hooks and react-native-marketingcloudsdk. See all react-firebase-hooks alternatives


















