Home / Function/ initFbt() — react Function Reference

initFbt() — react Function Reference

Architecture documentation for the initFbt() function in shared-runtime.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  8b0887f0_d007_0d5f_9960_53272a0978f8["initFbt()"]
  9afdd6fb_14c3_0a52_8105_2d82e58c5c28["shared-runtime.ts"]
  8b0887f0_d007_0d5f_9960_53272a0978f8 -->|defined in| 9afdd6fb_14c3_0a52_8105_2d82e58c5c28
  style 8b0887f0_d007_0d5f_9960_53272a0978f8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/snap/src/sprout/shared-runtime.ts lines 39–51

export function initFbt(): void {
  const viewerContext: IntlViewerContext = {
    GENDER: IntlVariations.GENDER_UNKNOWN,
    locale: 'en_US',
  };

  init({
    translations: {},
    hooks: {
      getViewerContext: () => viewerContext,
    },
  });
}

Domain

Subdomains

Frequently Asked Questions

What does initFbt() do?
initFbt() is a function in the react codebase, defined in compiler/packages/snap/src/sprout/shared-runtime.ts.
Where is initFbt() defined?
initFbt() is defined in compiler/packages/snap/src/sprout/shared-runtime.ts at line 39.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free