Answer the question
In order to leave comments, you need to log in
How to use connect to pass only the mapDispatchToProps function there?
I have a component that does not need to accept elements from the store, but needs to be added. And in connect, the mapDispatchToProps function is passed as the second argument, after mapStateToProps. I tried to just put mapDispatchToProps, but I got an error. Is it possible somehow not to write mapStateToProps?
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