Created
April 24, 2023 18:08
-
-
Save adeelibr/73a7f40b9dcdc707f740b957f89d8f3f to your computer and use it in GitHub Desktop.
Proposal for feature flags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BE does the feature flags for users for A/B testing | |
<FeatureFlag isEnabled={flagValue}> | |
// Content for a specific feature flag | |
</FeatureFlag> | |
const FeatureFlag = ({ isEnabled, children }) => { | |
return isEnabled ? children : null; | |
} | |
// Can be used for feature flags for A/B testing | |
// Can be used for feature flags on vercel .env till a fully feature is developed while we deploying on main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment