Skip to content

Commit 1e13333

Browse files
authored
chore: fix react-sdk REAMDE example, add missing EvaluationContext (#762)
## This PR - fixes the example in react-sdk's REAMDE, add missing `EvaluationContext`. Signed-off-by: Henry Chen <[email protected]>
1 parent 3ad61cc commit 1e13333

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Here's a basic example of how to use the current API with the in-memory provider
3333
```tsx
3434
import logo from './logo.svg';
3535
import './App.css';
36-
import { OpenFeatureProvider, useFeatureFlag, OpenFeature } from '@openfeature/react-sdk';
36+
import { EvaluationContext, OpenFeatureProvider, useFeatureFlag, OpenFeature } from '@openfeature/react-sdk';
3737
import { FlagdWebProvider } from '@openfeature/flagd-web-provider';
3838

3939
const flagConfig = {
@@ -168,4 +168,4 @@ function Fallback() {
168168
// component to render before READY.
169169
return <p>Waiting for provider to be ready...</p>;
170170
}
171-
```
171+
```

0 commit comments

Comments
 (0)