Feature Flagging with React

This is an example application to demonstrate how feature flagging can be accomplished using React.

The cards below are rendered with the ProfileCard component. In the src/app/profile-card.js file, you will find an if condition that represents the feature flag. Turning this flag on will link each profile card to a separate profile page.

You can manage the feature flags in the Feature Flags page. These flags are stored in local storage. To these flags in use, switch out the hard-coded feature flag in profile-card.js by getting the stored feature flag value by using getFeatureFlag("profilePage").


Loading...