Great question!
Gott Phusit
1

Okay, I see where you’re going with that and how it could work, but I don’t think your gist is correct. Your WithStore component does not accept a selector prop that it passes to connect. This function is essentially the mapStateToProps function of connect. If you add that in (along with a mapDispatchToProps function prop), then I think you’d be good to go.

Like what you read? Give Matt Parrish a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.