RefirebaseProvider
Provides the Refirebase instance to the entire application.
Usage
Wrap your React application with RefirebaseProvider so that hooks like useRefirebase or useCollection have access to your database and authentication instances.
App.tsx
import { RefirebaseProvider } from 'refirebase/react';
import { refirebase } from './firebase'; // Your Refirebase instance
export default function App({ children }) {
return (
<RefirebaseProvider instance={refirebase}>
{children}
</RefirebaseProvider>
);
}Parameters
| Param | Type | Description |
|---|---|---|
instance* | Refirebase<T> | Your initialized Refirebase instance. |
children* | React.ReactNode | Your application components. |