Skip to content

Instantly share code, notes, and snippets.

View KASOGIT's full-sized avatar
🚀
Hustling

Soto Adam KASOGIT

🚀
Hustling
View GitHub Profile
@KASOGIT
KASOGIT / useFeatureFlag.tsx
Created October 4, 2021 16:24
useFeature flag hook
declare global {
interface Window {
flags: {
enableFlag?: (name: string) => void;
disableFlag?: (name: string) => void;
};
}
}
const FeatureFlagsContext = React.createContext({}); // flag names