-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
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
Docs: Add hooks usage guide page #1575
Comments
Hi, |
For the documentation of React Redux I have found that it does not state quite clearly how to let dispatch = useDispatch(); I think this should be stated in the React Redux documentation more clearly. |
@clifflo I don't think anything special has to be said there. The React rules of hooks clearly state all hooks must be called at the top level of a function component. That applies to So, yes, the hooks lint rule then says you have to add |
The usage guide pages for
mapState
andmapDispatch
are amazingly good, and I frequently link them as references to answer people's questions.However, we currently only have an API reference page for our hooks API. It's time we added some kind of a usage guide page for the hooks as well.
I'm not exactly sure what topics it should cover, but I'd like to hear suggestions.
The text was updated successfully, but these errors were encountered: