@xtreamsrl/react-feature-flags-dummy
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

@xtreamsrl/react-feature-flags-dummy

This package exposes an example implementation of the feature flag manager.

Installation

npm install @xtreamsrl/react-feature-flags-dummy

Usage

Set up the feature flag tool to use with configureManager by passing it an instance of the DummyFeatureFlagsManager manager and wrap the main app with the DummyFeatureFlagsProvider.

// app.tsx
import { configureManager } from '@xtreamsrl/react-feature-flags';
import { GrowthbookProvider, DummyFeatureFlagsManager } from '@xtreamsrl/react-feature-flags-dummy';
import { flagMap } from '.shared/feature-flags'

const dummyManager = new DummyFeatureFlagsManager(flagMap);

configureManager({
    manager: dummyManager
})

export function App() {
  return (
    <DummyFeatureFlagsProvider value={dummyManager}>
      <MainApp />
    </DummyFeatureFlagsProvider>
  );
}

For more details on how to manage flags read the react-feature-flags README.

Who we are

xtream logo

A proudly 🇮🇹 software development and data science startup.
We consider ourselves a family of talented and passionate people building their own products and powerful solutions for our clients. Get to know us more on xtreamers.io or follow us on LinkedIn.

Readme

Keywords

none

Package Sidebar

Install

npm i @xtreamsrl/react-feature-flags-dummy

Weekly Downloads

0

Version

0.2.2

License

none

Unpacked Size

4.33 kB

Total Files

5

Last publish

Collaborators

  • xtreamsrl