Package Exports
- @kage1020/react-firebase-hooks
- @kage1020/react-firebase-hooks/auth/index
- @kage1020/react-firebase-hooks/auth/types
- @kage1020/react-firebase-hooks/auth/useAuthState
- @kage1020/react-firebase-hooks/auth/useCreateUserWithEmailAndPassword
- @kage1020/react-firebase-hooks/auth/useDeleteUser
- @kage1020/react-firebase-hooks/auth/useIdToken
- @kage1020/react-firebase-hooks/auth/useSendEmailVerification
- @kage1020/react-firebase-hooks/auth/useSendPasswordResetEmail
- @kage1020/react-firebase-hooks/auth/useSendSignInLinkToEmail
- @kage1020/react-firebase-hooks/auth/useSignInWithEmailAndPassword
- @kage1020/react-firebase-hooks/auth/useSignInWithEmailLink
- @kage1020/react-firebase-hooks/auth/useSignInWithPopup
- @kage1020/react-firebase-hooks/auth/useSignOut
- @kage1020/react-firebase-hooks/auth/useUpdateUser
- @kage1020/react-firebase-hooks/database/helpers/index
- @kage1020/react-firebase-hooks/database/helpers/useListReducer
- @kage1020/react-firebase-hooks/database/index
- @kage1020/react-firebase-hooks/database/types
- @kage1020/react-firebase-hooks/database/useList
- @kage1020/react-firebase-hooks/database/useObject
- @kage1020/react-firebase-hooks/firestore/helpers/index
- @kage1020/react-firebase-hooks/firestore/index
- @kage1020/react-firebase-hooks/firestore/types
- @kage1020/react-firebase-hooks/firestore/useCollection
- @kage1020/react-firebase-hooks/firestore/useDocument
- @kage1020/react-firebase-hooks/functions/index
- @kage1020/react-firebase-hooks/functions/useHttpsCallable
- @kage1020/react-firebase-hooks/messaging/index
- @kage1020/react-firebase-hooks/messaging/useToken
- @kage1020/react-firebase-hooks/storage/index
- @kage1020/react-firebase-hooks/storage/useDownloadURL
- @kage1020/react-firebase-hooks/storage/useUploadFile
Readme
@kage1020/react-firebase-hooks
A fork of react-firebase-hooks with updated tooling and dependencies.
A set of reusable React Hooks for Firebase.
Installation
This package requires React 16.8.0 or later and Firebase v9.0.0 or later.
# with npm
npm install --save @kage1020/react-firebase-hooks
# with yarn
yarn add @kage1020/react-firebase-hooks
# with pnpm
pnpm add @kage1020/react-firebase-hooksMigration from react-firebase-hooks
This package is a drop-in replacement for react-firebase-hooks. Simply change your import:
// Before
import { useAuthState } from 'react-firebase-hooks/auth';
import { useCollection } from 'react-firebase-hooks/firestore';
// After
import { useAuthState } from '@kage1020/react-firebase-hooks/auth';
import { useCollection } from '@kage1020/react-firebase-hooks/firestore';Why this fork?
This library maintains the same excellent React Hooks API for Firebase while bringing modern tooling benefits:
- โก Faster builds with Vite instead of Rollup
- ๐งช Better DX with Vitest instead of Jest
- ๐ฆ Improved bundling with optimized ESM/CJS outputs
- ๐ง Latest dependencies for better security and performance
Documentation
The API remains identical to the original package:
- Authentication Hooks
- Cloud Firestore Hooks
- Cloud Functions Hooks
- Cloud Messaging Hooks
- Cloud Storage Hooks
- Realtime Database Hooks
License
- See LICENSE