For the complete documentation index, see llms.txt. This page is also available as Markdown.

OpenFeature Provider for React

Integrate OpenFeature with Harness FME in your React applications to evaluate feature flags, manage contexts, and track events using a standardized SDK.

Integrate your React applications with Harness FME using the React OpenFeature Provider, a standardized, vendor-agnostic feature flagging API. This provider implements the OpenFeature specification and bridges the OpenFeature SDK with the Harness FME Browser SDK.

This page walks you through installing, configuring, and using the React OpenFeature provider to evaluate feature flags in your React applications.

Before you begin

Before you begin, ensure you have the following:

  • A valid Harness FME SDK key for your application

  • An React 17+ application using evaluation hooks

  • Access to your application's package.json file to add the provider dependency

Version compatibility

Component
Minimum Version

React

≥ 17

@splitsoftware/openfeature-web-split-provider

≥ 1.0.0

Harness FME Browser SDK

≥ 10.x

OpenFeature React SDK

≥ 0.1.0

Install the provider and dependencies

Add the Harness FME OpenFeature provider dependency to your application's package.json file.

npm i @openfeature/react-sdk @splitsoftware/splitio-browserjs @splitsoftware/openfeature-web-split-provider

Initialize the provider

The Harness FME OpenFeature provider requires your Harness FME Browser SDK key and a targeting key.

Evaluate feature flags using evaluation hooks

Specify the feature flag key and a default value in useFlag so your application has a predictable fallback while the flag value loads.

For more information, go to the Harness FME Web OpenFeature Provider GitHub repository.

Last updated

Was this helpful?