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

Function UpperCaserOnRender

example/withoutSuspense/Functions.tsx:36–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36function UpperCaserOnRender() {
37 const greetings = ['Hello World', 'yo', `what's up?`];
38 const textToUppercase = greetings[Math.floor(Math.random() * greetings.length)];
39 const { status, data: uppercasedText } = useCallableFunctionResponse<{ text: string }, string>('capitalizeText', { data: { text: textToUppercase } });
40
41 if (status === 'loading') {
42 return <LoadingSpinner />;
43 }
44
45 return <span>{uppercasedText}</span>;
46}
47
48export function Functions() {
49 const app = useFirebaseApp();

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected