mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Shortcut for the common case where only a single flag is checked. Same as `gate(flags => flags.enableFeatureFlag)`. Normally I don't care about these types of conveniences but I'm about to add a lot more inline flag checks these all over our tests and it gets noisy. This helps a bit.