How to Export a Connected Component

added by JavaScript Kicks
11/9/2018 5:51:03 PM

752 Views

Depending on where you put your export, you might end up with a perfectly functioning React-Redux connected component, or one that seems to ignore Redux entirely. In other words, there's a world of difference between this: and this: If you set it up like the second example, you might notice all the React stuff works, but the Redux functions mapStateToProps and mapDispatchToProps never run.


0 comments