We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While this is an easy way to get the "context"
<UserData.Consumer>{context => ... </UserData.Consumer>
A hook would make my code easier to read.
const UserProfile = () => { const context = useUser(); // better name needed return (....) }
Thoughts?
The text was updated successfully, but these errors were encountered:
Totally agree that we should get some hooks going on!
Sorry, something went wrong.
Sorry, forgot about this feature request.
I'll have sometime next week to send a PR. Looks like a one liner tho.
Example:
export const useStateValue = () => useContext(StateContext);
What do you think is a good name for the function?
No branches or pull requests
While this is an easy way to get the "context"
A hook would make my code easier to read.
Thoughts?
The text was updated successfully, but these errors were encountered: