Feature flags integration for Archbase React v3 using Unleash
npm install @archbase/feature-flagsFeature flags integration for Archbase React v3 using Unleash.
``bash`
npm install @archbase/feature-flagsor
pnpm add @archbase/feature-flagsor
yarn add @archbase/feature-flags
- Unleash Integration: Full Unleash proxy client support
- React Hooks: Easy-to-use hooks for feature flag checks
- Context Provider: Global feature flag context
- Type Safety: Full TypeScript support
`json`
{
"@mantine/core": "8.3.12",
"react": "^18.3.0 || ^19.0.0",
"react-dom": "^18.3.0 || ^19.0.0"
}
`typescript
import { useFeature, FeatureProvider } from '@archbase/feature-flags';
// Check if a feature is enabled
const { isEnabled } = useFeature('my-feature');
if (isEnabled) {
// Feature code
}
``
MIT © Edson Martins
For full documentation, visit https://react.archbase.dev