UNPKG

react-enable

Version:

feature flags to enable and disable functionality at runtime in a react application

5 lines (4 loc) 234 B
/// <reference types="react" /> import { FeatureValue } from './FeatureState'; export declare type EnableContextType = (feature: string) => FeatureValue; export declare const EnableContext: import("react").Context<EnableContextType>;