Skip to content

Commit

Permalink
docs(react): update the error message (#978)
Browse files Browse the repository at this point in the history
## This PR

- updates the example error message

### Notes

The linter used by the documentation expects a language to be used on
all code fences.


https://github.com/open-feature/openfeature.dev/actions/runs/10449600501/job/28932244856?pr=592

Signed-off-by: Michael Beemer <[email protected]>
  • Loading branch information
beeme1mr authored Aug 26, 2024
1 parent 16b0d74 commit 429c4ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,7 @@ The React SDK includes a built-in context provider for testing.
This allows you to easily test components that use evaluation hooks, such as `useFlag`.
If you try to test a component (in this case, `MyComponent`) which uses an evaluation hook, you might see an error message like:

```
No OpenFeature client available - components using OpenFeature must be wrapped with an <OpenFeatureProvider>.
```
> No OpenFeature client available - components using OpenFeature must be wrapped with an `<OpenFeatureProvider>`.
You can resolve this by simply wrapping your component under test in the OpenFeatureTestProvider:

Expand Down

0 comments on commit 429c4ae

Please sign in to comment.