• Returns the JSON variation of a feature flag.

    Type Parameters

    • T = unknown

    Parameters

    • key: string

      The feature flag key.

    • defaultValue: T

      The value to return if the flag is not available.

    • Optional reactContext: Context<LDReactClientContextValue>

      Optional React context to read from. Defaults to the global LDReactContext.

      Optional

    Returns T

    The JSON flag value, or defaultValue if the flag is unavailable.

Generated using TypeDoc