Answer the question
In order to leave comments, you need to log in
How to correctly pass dispatch to a child component?
Now I'm dealing with one project, before that I didn't work with React and Redux.
There is the following structure:
<App>
<Child>
<SubChild></SubChild>
</Child>
</App>
App
wrapped in connect and forwarded SubChild
through Child
dispatch. At the same time, Child'у
he himself is not needed. And so everywhere. SubChild
wrap it in connect and not deal with dispatch forwarding? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question