Mr Robin
Mr Robin

Reputation: 53

Dispatch vs Return in react-redux

I start learn redux-react .Please help me difference between Dispatch and Return in redux-react?Can they replace each other?.

Upvotes: 0

Views: 2719

Answers (1)

Kristoffer Lund
Kristoffer Lund

Reputation: 209

I think you have misunderstood the concept og the dispatch method. Take some time and read the Redux documentation, here specifically for Actions, which is where the dispatch method is being used: http://redux.js.org/docs/basics/Actions.html

Here is an illustration of where the dispatch comes to play.

Illustration of dispatch method

Upvotes: 4

Related Questions