You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OpenFeature](https://openfeature.dev) is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool.
33
+
[OpenFeature](https://openfeature.dev) is an open specification that provides a vendor-agnostic, community-driven API for feature flagging that works with your favorite feature flag management tool or in-house solution.
34
+
35
+
<!-- x-hide-in-docs-end -->
26
36
27
37
🧪 This SDK is experimental.
28
38
29
-
## Basic Usage
39
+
## Overview
40
+
41
+
The OpenFeature React SDK adds React-specific functionality to the [OpenFeature Web SDK](https://openfeature.dev/docs/reference/technologies/client/web).
42
+
43
+
In addition to the feature provided by the [web sdk](https://openfeature.dev/docs/reference/technologies/client/web), capabilities include:
44
+
45
+
-[Multiple Providers and Scoping](#multiple-providers-and-scoping)
46
+
-[Re-rendering with Context Changes](#re-rendering-with-context-changes)
47
+
-[Re-rendering with Flag Configuration Changes](#re-rendering-with-flag-configuration-changes)
48
+
-[Suspense Support](#suspense-support)
49
+
50
+
## 🚀 Quick start
51
+
52
+
### Requirements
53
+
54
+
- ES2022-compatible web browser (Chrome, Edge, Firefox, etc)
55
+
- React version 16.8+
30
56
31
-
Here's a basic example of how to use the current API with the in-memory provider:
57
+
### Install
58
+
59
+
#### npm
60
+
61
+
```sh
62
+
npm install --save @openfeature/react-sdk
63
+
```
64
+
65
+
#### Required peer dependencies
66
+
67
+
The following list contains the peer dependencies of `@openfeature/react-sdk` with its expected and compatible versions:
68
+
69
+
*`@openfeature/web-sdk`: >=0.4.10
70
+
*`react`: >=16.8.0
71
+
72
+
### Usage
73
+
74
+
The example below shows how to use the `OpenFeatureProvider` with OpenFeature's `InMemoryProvider`.
0 commit comments