AI AGENT ADDONS

Feature Flags

facebook/react
Testing & QA
1,041installs

Feature flags let you turn parts of your React app on or off without changing code. They help you test new features safely before releasing them to everyone. This guide shows how to add, check, and debug feature flags in React.

You will learn about @gate pragmas for skipping tests when a flag is off. The gate() inline function lets you run different test code based on the flag value. You can also use __VARIANT__ to simulate flags that change behavior.

Common mistakes include forgetting to add flags to all file forks or using the wrong gate syntax. The /flags command helps you compare flag values across different channels.

Add Feature Flags skill to your workflow

Global

mkdir -p ~/.claude/skills/feature-flags

Project

mkdir -p .claude/skills/feature-flags

Source Repository

Stars
246,277
Forks
51,088
Watchers
246,277
License
MIT
Last Push
1 month ago
Created
13 years ago