Member Junction
    Preparing search index...

    Angular-specific adapter for the React runtime. Manages the integration between Angular services and the platform-agnostic React runtime.

    Index

    Constructors

    Methods

    • Eagerly start loading the React runtime in the background. Call this at app startup (e.g., in APP_INITIALIZER or after auth) so that React, ReactDOM, and Babel are already downloaded from CDN by the time the user opens an interactive component artifact.

      Two-phase approach:

      1. Immediately inject <link rel="preload"> hints so the browser starts downloading the CDN scripts in parallel with other page work.
      2. Fire-and-forget initialize() which creates <script> tags and executes them. If the preload hints already fetched the bytes, the script load is nearly instant (served from HTTP cache).

      Safe to call multiple times — the underlying initialize() deduplicates. Does not block: returns immediately, initialization continues in background.

      Returns void

    • Register a component in the registry

      Parameters

      • name: string

        Component name

      • component: any

        Compiled component

      • namespace: string = 'Global'

        Component namespace

      • version: string = 'v1'

        Component version

      Returns ComponentMetadata

      Component metadata

    • Transpile JSX code directly

      Parameters

      • code: string

        JSX code to transpile

      • Optionalfilename: string

        Optional filename for better error messages

      Returns string

      Transpiled JavaScript code