In the redux document example RedditAPI, how does dispatch get into the container component AsyncApp?

mapDispatchToProps

mapDispatchToProps

when the mapDispatchToProps method is passed into the connect, the dispatch in the component is undefined;
when the mapDispatchToProps method is not passed into the connect, the dispatch in the component can be obtained
Why does this happen?

Mar.13,2021

this is the function of connect , which provides two different ways to use it.

Menu