Skip to content

Commit d6212d2

Browse files
authored
docs: fix wrong import in events section of README.md
Listening to events contained import of `useUnleashContext` instead `useUnleashContext`
1 parent 55db682 commit d6212d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The core JavaScript client emits various types of events depending on internal a
147147
NOTE: `FlagProvider` uses these internal events to provide information through `useFlagsStatus`.
148148

149149
```jsx
150-
import { useUnleashContext, useFlag } from '@unleash/proxy-client-react';
150+
import { useUnleashClient, useFlag } from '@unleash/proxy-client-react';
151151

152152
const MyComponent = ({ userId }) => {
153153
const client = useUnleashClient();

0 commit comments

Comments
 (0)