MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / App

Function App

example/withSuspense/App.tsx:14–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12import { getAuth } from 'firebase/auth';
13
14export const App = () => {
15 const firebaseApp = useFirebaseApp();
16 const auth = getAuth(firebaseApp);
17
18 useInitPerformance(
19 async (firebaseApp) => {
20 const { getPerformance } = await import('firebase/performance');
21 return getPerformance(firebaseApp);
22 },
23 { suspense: false } // false because we don't want to stop render while we wait for perf
24 );
25
26 return (
27 <div className="flex flex-wrap justify-around p-4">
28 <AuthProvider sdk={auth}>
29 <Card title="Authentication">
30 <Auth />
31 </Card>
32 <Card title="Firestore">
33 <Firestore />
34 </Card>
35 <Card title="Realtime Database">
36 <RealtimeDatabase />
37 </Card>
38 <Card title="Remote Config">
39 <RemoteConfig />
40 </Card>
41 <Card title="Storage">
42 <Storage />
43 </Card>
44 </AuthProvider>
45 </div>
46 );
47};

Callers

nothing calls this directly

Calls 2

useFirebaseAppFunction · 0.85
useInitPerformanceFunction · 0.85

Tested by

no test coverage detected