Replies: 1 comment
-
|
Good point. I've updated the docs to showcase this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The docs mentions the use of Context Components to expose state and functions to child components.
However I have noticed that an alternative way would be to use context hooks. For example in my case where I'm building logic around the Menu component I can do the following:
I see no mention of this is the Documentation (perhaps because it is React specific), but is this a valid way of using the hook?
Beta Was this translation helpful? Give feedback.
All reactions