import { FeatureFlags, FeatureFlag } from '@cerberus/react'
Usage
API
export interface FeatureFlagsProviderValue { flags: Record<string, boolean>}
export interface FeatureFlagProps { // A unique key of the flags data passed into the provider. flag: string}
define function FeatureFlag(props: PropsWithChildren<FeatureFlagProps>): JSX.Element
Props
The FeatureFlag
component accepts the following props:
Name | Default | Description |
---|---|---|
flag | null | A unique key of the flags data passed into the provider. |