Skip to content

Commit 429c4ae

Browse files
authored
docs(react): update the error message (#978)
## 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]>
1 parent 16b0d74 commit 429c4ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/react/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,7 @@ The React SDK includes a built-in context provider for testing.
285285
This allows you to easily test components that use evaluation hooks, such as `useFlag`.
286286
If you try to test a component (in this case, `MyComponent`) which uses an evaluation hook, you might see an error message like:
287287

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

0 commit comments

Comments
 (0)