Implement Feature Flag Component in React
Build a centralized Feature Flag system in React that dynamically enables or disables UI features based on a configuration fetched from an API. In large applications offering different service tiers, certain UI features must be shown or hidden per user plan. Use React Context API to cache the feature flags and expose a useFeatureFlag hook so any component can read a flag without prop drilling.