FlagsterFlagster
SDKs/React/Components

FeatureEnabled

FeatureEnabled component allows you to render a component only when the flag is enabled.

PropTypeDefault
name
string
-

Usage

import { FeatureEnabled } from 'flagster-react';
 
const MyComponent = () => {
  return (
    <FeatureEnabled name="github_auth">
      GitHub Auth is enabled
    </FeatureEnabled>
  );
};

On this page