FCC Leaderboard, react-redux, how do I use mapDispatchToProps to map an XHR request to a property?

FCC Leaderboard, react-redux, how do I use mapDispatchToProps to map an XHR request to a property?
0

#1

I am building the FCC leaderboard, and chose to use React together with Redux.

This is my code so far.

I have verified that getCampers and theReducer work the way I want them to work (populates the store from the data recieved on a request). However, what I don’t understand is how I would make getCampers available to react components through the mapDispatchToProps function.


#2

I think I found the solution here, pasting the link if someone else needs it later.